Editable templates (#225)

* editable templates

* removed unused import
This commit is contained in:
Marco Piovanello
2024-11-15 14:24:44 +01:00
committed by GitHub
parent 6c9118f67e
commit ab7932ae92
6 changed files with 167 additions and 62 deletions

View File

@@ -34,6 +34,7 @@ func ApplyRouter(args *ContainerArgs) func(chi.Router) {
r.Post("/cookies", h.SetCookies())
r.Delete("/cookies", h.DeleteCookies())
r.Post("/template", h.AddTemplate())
r.Patch("/template", h.UpdateTemplate())
r.Get("/template/all", h.GetTemplates())
r.Delete("/template/{id}", h.DeleteTemplate())
}