List unit types
This commit is contained in:
parent
b7caffa373
commit
d535cd85ff
9 changed files with 152 additions and 0 deletions
|
@ -53,6 +53,7 @@ func API() *mux.Router {
|
|||
m.Path("/text_measurement_types/{Id:.+}").Methods("DELETE").Name(DeleteTextMeasurementType)
|
||||
|
||||
// UnitTypes
|
||||
m.Path("/unit_types/").Methods("GET").Name(UnitTypes)
|
||||
m.Path("/unit_types/").Methods("POST").Name(CreateUnitType)
|
||||
m.Path("/unit_types/{Id:.+}").Methods("GET").Name(UnitType)
|
||||
|
||||
|
|
|
@ -43,4 +43,5 @@ const (
|
|||
|
||||
UnitType = "unit_type:get"
|
||||
CreateUnitType = "unit_type:create"
|
||||
UnitTypes = "unit_type:list"
|
||||
)
|
||||
|
|
Reference in a new issue