init
This commit is contained in:
commit
2586161abd
49 changed files with 4171 additions and 0 deletions
13
web/routes.go
Normal file
13
web/routes.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package web
|
||||
|
||||
import (
|
||||
"git.sleepycat.moe/sam/mercury/web/app"
|
||||
"git.sleepycat.moe/sam/mercury/web/frontend"
|
||||
)
|
||||
|
||||
func Routes(app *app.App) {
|
||||
frontend := frontend.New(app)
|
||||
app.Router.HandleFunc(frontend.AssetsPath(), frontend.ServeAssets)
|
||||
app.Router.HandleFunc("/web", frontend.ServeFrontend)
|
||||
app.Router.HandleFunc("/web/*", frontend.ServeFrontend)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue