From 02ec8ad88c76ff7acc1f1cf6927d5ca6c77226c4 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 16 Mar 2022 04:25:30 +0000 Subject: [PATCH] Remove listTemplates, since the Store support isn't there --- api.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api.go b/api.go index 7457624..ecd5343 100644 --- a/api.go +++ b/api.go @@ -14,7 +14,6 @@ func NewAPI() *API { router: mux.NewRouter(), } - api.router.HandleFunc("/template", api.listTemplates).Methods("GET") api.router.HandleFunc("/template", api.createTemplate).Methods("POST") api.router.HandleFunc("/template/{id}", api.getTemplate).Methods("GET") 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) } -func (api *API) listTemplates(w http.ResponseWriter, r *http.Request) { - log.Printf("listTemplates") -} - func (api *API) createTemplate(w http.ResponseWriter, r *http.Request) { log.Printf("createTemplate") }