Create a strain.
This commit is contained in:
parent
6c118f47f7
commit
6bba9058aa
9 changed files with 146 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -17,5 +17,6 @@ const (
|
|||
UpdateSpecies = "species:update"
|
||||
DeleteSpecies = "species:delete"
|
||||
|
||||
Strain = "strain:get"
|
||||
Strain = "strain:get"
|
||||
CreateStrain = "strain:create"
|
||||
)
|
||||
|
|
Reference in a new issue