Move pesticide add out of mocks

This commit is contained in:
Eli Ribble 2026-02-16 20:19:56 +00:00
parent 38f64783ac
commit d4ed987857
No known key found for this signature in database
3 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{{ template "sync/layout/base.html" . }}
{{ template "sync/layout/authenticated.html" . }}
{{ define "title" }}Dash{{ end }}
{{ define "extraheader" }}

View file

@ -35,7 +35,6 @@ func Router() chi.Router {
addMock(r, "/mock/report/{code}/update", "sync/mock/report-update.html")
addMock(r, "/mock/service-request/{code}", "sync/mock/service-request-detail.html")
addMock(r, "/mock/setting", "sync/mock/setting.html")
addMock(r, "/mock/setting/pesticide/add", "sync/mock/setting-pesticide-add.html")
addMock(r, "/mock/setting/user", "sync/mock/setting-user.html")
addMock(r, "/mock/setting/user/add", "sync/mock/setting-user-add.html")
@ -63,6 +62,7 @@ func Router() chi.Router {
r.Method("GET", "/setting/district", auth.NewEnsureAuth(getSettingDistrict))
r.Method("GET", "/setting/integration", auth.NewEnsureAuth(getSettingIntegration))
r.Method("GET", "/setting/pesticide", authenticatedHandler(getSettingPesticide))
r.Method("GET", "/setting/pesticide/add", authenticatedHandler(getSettingPesticideAdd))
r.Method("GET", "/signout", auth.NewEnsureAuth(getSignout))
r.Method("GET", "/source/{globalid}", auth.NewEnsureAuth(getSource))
r.Method("GET", "/stadia", auth.NewEnsureAuth(getStadia))

View file

@ -134,3 +134,7 @@ func getSettingPesticide(ctx context.Context, user *models.User) (string, interf
content := contentSettingPesticide{}
return "sync/setting-pesticide.html", content, nil
}
func getSettingPesticideAdd(ctx context.Context, user *models.User) (string, interface{}, *errorWithStatus) {
content := contentSettingPesticide{}
return "sync/setting-pesticide-add.html", content, nil
}