List strains.
This commit is contained in:
parent
6bba9058aa
commit
b8bda910cd
9 changed files with 151 additions and 0 deletions
|
@ -25,6 +25,7 @@ func API() *mux.Router {
|
|||
m.Path("/species/{Id:.+}").Methods("DELETE").Name(DeleteSpecies)
|
||||
|
||||
// Strains
|
||||
m.Path("/strains").Methods("GET").Name(Strains)
|
||||
m.Path("/strains").Methods("POST").Name(CreateStrain)
|
||||
m.Path("/strains/{Id:.+}").Methods("GET").Name(Strain)
|
||||
|
||||
|
|
|
@ -19,4 +19,5 @@ const (
|
|||
|
||||
Strain = "strain:get"
|
||||
CreateStrain = "strain:create"
|
||||
Strains = "strain:list"
|
||||
)
|
||||
|
|
Reference in a new issue