mercury/web/routes.go

14 lines
353 B
Go
Raw Normal View History

2023-09-03 00:23:48 +02:00
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)
}