Species - delete

This commit is contained in:
Matthew Dillon 2014-10-24 10:42:31 -08:00
parent 22d2b8b41d
commit 4669aff3c2
9 changed files with 161 additions and 0 deletions

View file

@ -22,6 +22,7 @@ func API() *mux.Router {
m.Path("/species").Methods("POST").Name(CreateSpecies)
m.Path("/species/{Id:.+}").Methods("GET").Name(Species)
m.Path("/species/{Id:.+}").Methods("PUT").Name(UpdateSpecies)
m.Path("/species/{Id:.+}").Methods("DELETE").Name(DeleteSpecies)
return m
}

View file

@ -15,4 +15,5 @@ const (
CreateSpecies = "species:create"
SpeciesList = "species:list"
UpdateSpecies = "species:update"
DeleteSpecies = "species:delete"
)