create an observation type

This commit is contained in:
Matthew Dillon 2014-11-04 16:13:55 -09:00
parent 4fd7bf8eba
commit 0e767390b5
9 changed files with 155 additions and 4 deletions

View file

@ -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

View file

@ -23,5 +23,6 @@ const (
UpdateStrain = "strain:update"
DeleteStrain = "strain:delete"
ObservationType = "observation_type:get"
ObservationType = "observation_type:get"
CreateObservationType = "observation_type:create"
)