Create text measurement type
This commit is contained in:
parent
3e0ca9df8c
commit
b1dad9bfbd
9 changed files with 154 additions and 3 deletions
|
@ -46,6 +46,7 @@ func API() *mux.Router {
|
|||
m.Path("/observations/{Id:.+}").Methods("DELETE").Name(DeleteObservation)
|
||||
|
||||
// TextMeasurementTypes
|
||||
m.Path("/text_measurement_types/").Methods("POST").Name(CreateTextMeasurementType)
|
||||
m.Path("/text_measurement_types/{Id:.+}").Methods("GET").Name(TextMeasurementType)
|
||||
|
||||
return m
|
||||
|
|
|
@ -35,5 +35,6 @@ const (
|
|||
UpdateObservation = "observation:update"
|
||||
DeleteObservation = "observation:delete"
|
||||
|
||||
TextMeasurementType = "text_measurement_type:get"
|
||||
TextMeasurementType = "text_measurement_type:get"
|
||||
CreateTextMeasurementType = "text_measurement_type:create"
|
||||
)
|
||||
|
|
Reference in a new issue