Update observation types.

This commit is contained in:
Matthew Dillon 2014-11-10 15:13:45 -09:00
parent 186edad1db
commit 73f7b580c1
9 changed files with 158 additions and 0 deletions

View file

@ -35,6 +35,7 @@ func API() *mux.Router {
m.Path("/observation_types").Methods("GET").Name(ObservationTypes)
m.Path("/observation_types").Methods("POST").Name(CreateObservationType)
m.Path("/observation_types/{Id:.+}").Methods("GET").Name(ObservationType)
m.Path("/observation_types/{Id:.+}").Methods("PUT").Name(UpdateObservationType)
return m
}

View file

@ -26,4 +26,5 @@ const (
ObservationType = "observation_type:get"
CreateObservationType = "observation_type:create"
ObservationTypes = "observation_type:list"
UpdateObservationType = "observation_type:update"
)