Migrate root of application to use a basic Vue app
We'll build from here.
This commit is contained in:
parent
5779242f22
commit
efece7733f
4 changed files with 64 additions and 80 deletions
|
|
@ -9,8 +9,6 @@ import (
|
|||
|
||||
func Router() chi.Router {
|
||||
r := chi.NewRouter()
|
||||
// Root is a special endpoint that is neither authenticated nor unauthenticated
|
||||
r.Get("/", getRoot)
|
||||
|
||||
// Unauthenticated endpoints
|
||||
r.Get("/arcgis/oauth/begin", getArcgisOauthBegin)
|
||||
|
|
@ -42,6 +40,7 @@ func Router() chi.Router {
|
|||
// Authenticated endpoints
|
||||
r.Route("/api", api.AddRoutes)
|
||||
|
||||
r.Method("GET", "/", authenticatedHandler(getRoot))
|
||||
r.Method("GET", "/admin", authenticatedHandler(getAdminDash))
|
||||
r.Method("GET", "/cell/{cell}", authenticatedHandler(getCellDetails))
|
||||
r.Method("GET", "/communication", authenticatedHandler(getCommunicationRoot))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue