fix: RegisterPublicRoute pour logs.html (pas d'auth sur page HTML)
This commit is contained in:
parent
afa6495fc7
commit
a1b8a1a678
1 changed files with 2 additions and 2 deletions
4
logs.go
4
logs.go
|
|
@ -34,10 +34,10 @@ func (m *LogsModule) Register(r modules.Registry) error {
|
|||
Color: "#38bdf8",
|
||||
LabelKey: "nav.logs",
|
||||
})
|
||||
r.RegisterRoute("GET", "/viewLogs/logs.html", func(w http.ResponseWriter, req *http.Request) {
|
||||
r.RegisterPublicRoute("GET", "/viewLogs/logs.html", func(w http.ResponseWriter, req *http.Request) {
|
||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||
w.Write(logsHTML)
|
||||
}, false)
|
||||
})
|
||||
r.RegisterRoute("GET", "/api/logs/units", m.listUnits(r), false)
|
||||
r.RegisterRoute("GET", "/ws/logs", m.streamLogs(r), false)
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue