One route for the user's polochon modules statuses One route for the modules statuses of Canape itself
13 lines
301 B
Go
13 lines
301 B
Go
package admin
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"git.quimbo.fr/odwrtw/canape/backend/web"
|
|
)
|
|
|
|
// GetModulesStatuses return the statuses of all the modules
|
|
func GetModulesStatuses(env *web.Env, w http.ResponseWriter, r *http.Request) error {
|
|
return env.RenderJSON(w, env.Config.PolochonConfig.ModulesStatus())
|
|
}
|