Species - delete
This commit is contained in:
parent
22d2b8b41d
commit
4669aff3c2
9 changed files with 161 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -15,4 +15,5 @@ const (
|
|||
CreateSpecies = "species:create"
|
||||
SpeciesList = "species:list"
|
||||
UpdateSpecies = "species:update"
|
||||
DeleteSpecies = "species:delete"
|
||||
)
|
||||
|
|
Reference in a new issue