Remove listTemplates, since the Store support isn't there

This commit is contained in:
Ian Gulliver
2022-03-16 04:25:30 +00:00
parent 745773de00
commit 02ec8ad88c

5
api.go
View File

@@ -14,7 +14,6 @@ func NewAPI() *API {
router: mux.NewRouter(), router: mux.NewRouter(),
} }
api.router.HandleFunc("/template", api.listTemplates).Methods("GET")
api.router.HandleFunc("/template", api.createTemplate).Methods("POST") api.router.HandleFunc("/template", api.createTemplate).Methods("POST")
api.router.HandleFunc("/template/{id}", api.getTemplate).Methods("GET") api.router.HandleFunc("/template/{id}", api.getTemplate).Methods("GET")
api.router.HandleFunc("/template/{id}", api.updateTemplate).Methods("PATCH") api.router.HandleFunc("/template/{id}", api.updateTemplate).Methods("PATCH")
@@ -26,10 +25,6 @@ func (api *API) ServeHTTP(w http.ResponseWriter, r *http.Request) {
api.router.ServeHTTP(w, r) api.router.ServeHTTP(w, r)
} }
func (api *API) listTemplates(w http.ResponseWriter, r *http.Request) {
log.Printf("listTemplates")
}
func (api *API) createTemplate(w http.ResponseWriter, r *http.Request) { func (api *API) createTemplate(w http.ResponseWriter, r *http.Request) {
log.Printf("createTemplate") log.Printf("createTemplate")
} }