Remove listTemplates, since the Store support isn't there
This commit is contained in:
5
api.go
5
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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user