Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to serve SPA? #1

Open
toby3d opened this issue Oct 25, 2019 · 0 comments
Open

How to serve SPA? #1

toby3d opened this issue Oct 25, 2019 · 0 comments

Comments

@toby3d
Copy link

toby3d commented Oct 25, 2019

I have a this collection of files:

* main.go
* web/
  * index.html
  * bundle.js
  * bundle.css
  * assets/
    * css/
      * styles.css
      * ...
    * js/
      * scripts.js
      * ...

So, I want serve my web/index.html on all /admin and /admin/* paths (his assets can be served via file.Server, I think). How I can do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant