Get a measurement
This commit is contained in:
parent
eccbffb86d
commit
ca1fbe882c
11 changed files with 280 additions and 0 deletions
|
@ -59,5 +59,8 @@ func API() *mux.Router {
|
|||
m.Path("/unit_types/{Id:.+}").Methods("PUT").Name(UpdateUnitType)
|
||||
m.Path("/unit_types/{Id:.+}").Methods("DELETE").Name(DeleteUnitType)
|
||||
|
||||
// Measurements
|
||||
m.Path("/measurements/{Id:.+}").Methods("GET").Name(Measurement)
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
|
@ -46,4 +46,6 @@ const (
|
|||
UnitTypes = "unit_type:list"
|
||||
UpdateUnitType = "unit_type:update"
|
||||
DeleteUnitType = "unit_type:delete"
|
||||
|
||||
Measurement = "measurement:get"
|
||||
)
|
||||
|
|
Reference in a new issue