Species: List species.

This commit is contained in:
Matthew Dillon 2014-10-23 17:29:07 -08:00
parent b045ded9cd
commit 5244ae529a
9 changed files with 161 additions and 0 deletions

View file

@ -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)

View file

@ -13,4 +13,5 @@ const (
Species = "species"
CreateSpecies = "species:create"
SpeciesList = "species:list"
)