Move pesticide add out of mocks
This commit is contained in:
parent
38f64783ac
commit
d4ed987857
3 changed files with 6 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{{ template "sync/layout/base.html" . }}
|
||||
{{ template "sync/layout/authenticated.html" . }}
|
||||
|
||||
{{ define "title" }}Dash{{ end }}
|
||||
{{ define "extraheader" }}
|
||||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue