Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jensilo committed Dec 30, 2023
1 parent ef02b2b commit 92eedb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/template/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func RegisterController(appCtx *hctx.AppCtx, webCtx *web.Ctx) {
router.Put("/template-set/{id}", templateSetEditController(appCtx, webCtx).ServeHTTP)
router.Delete("/template-set/{id}", templateSetDeleteController(appCtx, webCtx).ServeHTTP)
// TODO generalize this
router.Post("/template-set/import/default-paris", templateSetImportDefaultParisController(appCtx, webCtx).ServeHTTP)
router.Post("/template-set/import/default-paris", templateSetImportDefaultPARISController(appCtx, webCtx).ServeHTTP)

router.Get("/template-set/{id}/list", templateListController(appCtx, webCtx).ServeHTTP)
router.Get("/template-set/{id}/new", templateNewController(appCtx, webCtx).ServeHTTP)
Expand Down Expand Up @@ -412,7 +412,7 @@ func templateCopyController(appCtx *hctx.AppCtx, webCtx *web.Ctx) http.Handler {
})
}

func templateSetImportDefaultParisController(appCtx *hctx.AppCtx, webCtx *web.Ctx) http.Handler {
func templateSetImportDefaultPARISController(appCtx *hctx.AppCtx, webCtx *web.Ctx) http.Handler {
templateSetRepository := util.UnwrapType[template.SetRepository](appCtx.Repository(template.SetRepositoryName))
templateRepository := util.UnwrapType[template.Repository](appCtx.Repository(template.RepositoryName))

Expand Down

0 comments on commit 92eedb4

Please sign in to comment.