create an observation type
This commit is contained in:
parent
4fd7bf8eba
commit
0e767390b5
9 changed files with 155 additions and 4 deletions
|
@ -32,6 +32,7 @@ func API() *mux.Router {
|
|||
m.Path("/strains/{Id:.+}").Methods("DELETE").Name(DeleteStrain)
|
||||
|
||||
// ObservationTypes
|
||||
m.Path("/observation_types").Methods("POST").Name(CreateObservationType)
|
||||
m.Path("/observation_types/{Id:.+}").Methods("GET").Name(ObservationType)
|
||||
|
||||
return m
|
||||
|
|
|
@ -23,5 +23,6 @@ const (
|
|||
UpdateStrain = "strain:update"
|
||||
DeleteStrain = "strain:delete"
|
||||
|
||||
ObservationType = "observation_type:get"
|
||||
ObservationType = "observation_type:get"
|
||||
CreateObservationType = "observation_type:create"
|
||||
)
|
||||
|
|
Reference in a new issue