Create a strain.

This commit is contained in:
Matthew Dillon 2014-10-29 13:09:54 -08:00
parent 6c118f47f7
commit 6bba9058aa
9 changed files with 146 additions and 2 deletions

View file

@ -25,6 +25,7 @@ func API() *mux.Router {
m.Path("/species/{Id:.+}").Methods("DELETE").Name(DeleteSpecies)
// Strains
m.Path("/strains").Methods("POST").Name(CreateStrain)
m.Path("/strains/{Id:.+}").Methods("GET").Name(Strain)
return m

View file

@ -17,5 +17,6 @@ const (
UpdateSpecies = "species:update"
DeleteSpecies = "species:delete"
Strain = "strain:get"
Strain = "strain:get"
CreateStrain = "strain:create"
)