updates on the milerappcontroller and routes allother thing

This commit is contained in:
2026-10-07 12:07:57 +05:30
parent 0326624ca3
commit 6048145377
4 changed files with 130 additions and 6 deletions

View File

@@ -18,6 +18,11 @@ import (
// token on the server, not just be hidden in the UI.
var staffOnlyFleetRoutes = []struct{ method, path string }{
{http.MethodPost, "/api/v1/admin/tenants"},
{http.MethodPost, "/api/v1/admin/pricing"},
{http.MethodPut, "/api/v1/admin/pricing/1"},
{http.MethodDelete, "/api/v1/admin/pricing/1"},
{http.MethodPost, "/api/v1/admin/pricing/simulate"},
{http.MethodPost, "/api/v1/admin/pricing/quote"},
{http.MethodGet, "/api/v1/admin/users"},
{http.MethodPost, "/api/v1/admin/users"},
{http.MethodPut, "/api/v1/admin/users/1"},