mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
update restful api
This commit is contained in:
9
main.go
9
main.go
@ -15,6 +15,15 @@ func main() {
|
||||
|
||||
api.RegisterUserRoutes(r)
|
||||
api.RegisterAuthRoutes(r)
|
||||
api.RegisterMemoRoutes(r)
|
||||
api.RegisterQueryRoutes(r)
|
||||
|
||||
spa := api.SPAHandler{
|
||||
StaticPath: "./web/dist",
|
||||
IndexPath: "index.html",
|
||||
}
|
||||
|
||||
r.PathPrefix("/").Handler(spa)
|
||||
|
||||
http.ListenAndServe("localhost:8080", r)
|
||||
}
|
||||
|
Reference in New Issue
Block a user