species update wip

This commit is contained in:
Matthew Dillon 2014-10-23 18:25:15 -08:00
parent 5244ae529a
commit c8d1d0a84f
5 changed files with 100 additions and 0 deletions

View file

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

View file

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