Fix breaking the API routing
Ordering matters when you have a catch-all for the SPA
This commit is contained in:
parent
f22ddd0405
commit
9601b88b41
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -119,13 +119,13 @@ func main() {
|
|||
rmo_router := r.Host(config.DomainRMO).Subrouter()
|
||||
|
||||
// Set up routing by hostname
|
||||
nidussync.Router(sync_router)
|
||||
sync_api_router := sync_router.PathPrefix("/api").Subrouter()
|
||||
api.AddRoutes(sync_api_router)
|
||||
nidussync.Router(sync_router)
|
||||
|
||||
rmo.Router(rmo_router)
|
||||
rmo_api_router := rmo_router.PathPrefix("/api").Subrouter()
|
||||
api.AddRoutes(rmo_api_router)
|
||||
rmo.Router(rmo_router)
|
||||
|
||||
//hr.Map("", sr) // default
|
||||
//hr.Map("*", sr) // default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue