MCPcopy Index your code
hub / github.com/writefreely/writefreely / handleViewAdminSettings

Function handleViewAdminSettings

admin.go:170–188  ·  view source on GitHub ↗
(app *App, u *User, w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

168}
169
170func handleViewAdminSettings(app *App, u *User, w http.ResponseWriter, r *http.Request) error {
171 p := struct {
172 *UserPage
173 *AdminPage
174 Config config.AppCfg
175
176 Message, ConfigMessage string
177 }{
178 UserPage: NewUserPage(app, r, u, "Admin", nil),
179 AdminPage: NewAdminPage(app),
180 Config: app.cfg.App,
181
182 Message: r.FormValue("m"),
183 ConfigMessage: r.FormValue("cm"),
184 }
185
186 showUserPage(w, "app-settings", p)
187 return nil
188}
189
190func handleViewAdminUsers(app *App, u *User, w http.ResponseWriter, r *http.Request) error {
191 p := struct {

Callers

nothing calls this directly

Calls 3

NewUserPageFunction · 0.85
NewAdminPageFunction · 0.85
showUserPageFunction · 0.85

Tested by

no test coverage detected