Species: List species.
This commit is contained in:
parent
b045ded9cd
commit
5244ae529a
9 changed files with 161 additions and 0 deletions
|
@ -18,6 +18,7 @@ func API() *mux.Router {
|
|||
m.Path("/genera/{Id:.+}").Methods("DELETE").Name(DeleteGenus)
|
||||
|
||||
// Species
|
||||
m.Path("/species").Methods("GET").Name(SpeciesList)
|
||||
m.Path("/species").Methods("POST").Name(CreateSpecies)
|
||||
m.Path("/species/{Id:.+}").Methods("GET").Name(Species)
|
||||
|
||||
|
|
|
@ -13,4 +13,5 @@ const (
|
|||
|
||||
Species = "species"
|
||||
CreateSpecies = "species:create"
|
||||
SpeciesList = "species:list"
|
||||
)
|
||||
|
|
Reference in a new issue