Improve APIs
This commit is contained in:
@@ -8,9 +8,11 @@ import (
|
||||
|
||||
func registerAPIEndpoints() error {
|
||||
return api.RegisterEndpoint(api.Endpoint{
|
||||
Path: "ui/reload",
|
||||
Write: api.PermitUser,
|
||||
ActionFunc: reloadUI,
|
||||
Path: "ui/reload",
|
||||
Write: api.PermitUser,
|
||||
ActionFunc: reloadUI,
|
||||
Name: "Reload UI Assets",
|
||||
Description: "Removes all assets from the cache and reloads the current (possibly updated) version from disk when requested.",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user