Get an observation type
This commit is contained in:
parent
bedddfdec1
commit
4fd7bf8eba
11 changed files with 271 additions and 13 deletions
|
@ -31,5 +31,8 @@ func API() *mux.Router {
|
|||
m.Path("/strains/{Id:.+}").Methods("PUT").Name(UpdateStrain)
|
||||
m.Path("/strains/{Id:.+}").Methods("DELETE").Name(DeleteStrain)
|
||||
|
||||
// ObservationTypes
|
||||
m.Path("/observation_types/{Id:.+}").Methods("GET").Name(ObservationType)
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
|
@ -22,4 +22,6 @@ const (
|
|||
Strains = "strain:list"
|
||||
UpdateStrain = "strain:update"
|
||||
DeleteStrain = "strain:delete"
|
||||
|
||||
ObservationType = "observation_type:get"
|
||||
)
|
||||
|
|
Reference in a new issue