Create a measurement
This commit is contained in:
parent
ca1fbe882c
commit
87ac729c98
9 changed files with 158 additions and 3 deletions
|
@ -60,6 +60,7 @@ func API() *mux.Router {
|
|||
m.Path("/unit_types/{Id:.+}").Methods("DELETE").Name(DeleteUnitType)
|
||||
|
||||
// Measurements
|
||||
m.Path("/measurements/").Methods("POST").Name(CreateMeasurement)
|
||||
m.Path("/measurements/{Id:.+}").Methods("GET").Name(Measurement)
|
||||
|
||||
return m
|
||||
|
|
|
@ -47,5 +47,6 @@ const (
|
|||
UpdateUnitType = "unit_type:update"
|
||||
DeleteUnitType = "unit_type:delete"
|
||||
|
||||
Measurement = "measurement:get"
|
||||
Measurement = "measurement:get"
|
||||
CreateMeasurement = "measurements:create"
|
||||
)
|
||||
|
|
Reference in a new issue