Get an observation type

This commit is contained in:
Matthew Dillon 2014-11-03 16:12:50 -09:00
parent bedddfdec1
commit 4fd7bf8eba
11 changed files with 271 additions and 13 deletions

View file

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

View file

@ -22,4 +22,6 @@ const (
Strains = "strain:list"
UpdateStrain = "strain:update"
DeleteStrain = "strain:delete"
ObservationType = "observation_type:get"
)