fix: RegisterPublicRoute pour services.html (pas d'auth sur page HTML)
This commit is contained in:
parent
cd2ad5f8c3
commit
72e2cd07f9
1 changed files with 2 additions and 2 deletions
|
|
@ -33,10 +33,10 @@ func (m *ServicesModule) Register(r modules.Registry) error {
|
|||
Color: "#fb923c",
|
||||
LabelKey: "nav.services",
|
||||
})
|
||||
r.RegisterRoute("GET", "/viewServices/services.html", func(w http.ResponseWriter, req *http.Request) {
|
||||
r.RegisterPublicRoute("GET", "/viewServices/services.html", func(w http.ResponseWriter, req *http.Request) {
|
||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||
w.Write(servicesHTML)
|
||||
}, false)
|
||||
})
|
||||
r.RegisterRoute("GET", "/api/services", m.listServices(r), false)
|
||||
r.RegisterRoute("GET", "/api/services/{name}/status", m.serviceStatus(r), false)
|
||||
r.RegisterRoute("POST", "/api/services/{name}/{action}", m.serviceAction(r), true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue