Add district resource and an API to RMO
We're going to need an API for the single-page frontend
This commit is contained in:
parent
4f9617aa2f
commit
bfecae7d61
9 changed files with 114 additions and 16 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package sync
|
||||
|
||||
import (
|
||||
"github.com/Gleipnir-Technology/nidus-sync/api"
|
||||
"github.com/Gleipnir-Technology/nidus-sync/static"
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
|
@ -36,9 +35,6 @@ func Router(r *mux.Router) {
|
|||
r.HandleFunc("/qr-code/mailer/{code}", getQRCodeMailer)
|
||||
r.HandleFunc("/template-test", getTemplateTest)
|
||||
|
||||
api_router := r.PathPrefix("/api").Subrouter()
|
||||
api.AddRoutes(api_router)
|
||||
|
||||
r.HandleFunc("/", getRoot)
|
||||
r.HandleFunc("/_/*", getRoot)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue