Move admin dash out of mocks and into the sidebar

This commit is contained in:
Eli Ribble 2026-02-17 14:26:19 +00:00
parent 3d815b374e
commit eeb74643d0
No known key found for this signature in database
2 changed files with 2 additions and 41 deletions

View file

@ -23,7 +23,6 @@ func Router() chi.Router {
// Mock endpoints
r.Get("/mock", renderMockList)
addMock(r, "/mock/admin", "sync/mock/admin.html")
addMock(r, "/mock/dispatch", "sync/mock/dispatch.html")
addMock(r, "/mock/dispatch-results", "sync/mock/dispatch-results.html")
addMock(r, "/mock/report", "sync/mock/report.html")
@ -47,6 +46,7 @@ func Router() chi.Router {
// Authenticated endpoints
r.Route("/api", api.AddRoutes)
r.Method("GET", "/admin", authenticatedHandler(getAdminDash))
r.Method("GET", "/cell/{cell}", auth.NewEnsureAuth(getCellDetails))
r.Method("GET", "/layout-test", auth.NewEnsureAuth(getLayoutTest))
r.Method("GET", "/message", authenticatedHandler(getMessageList))