Create a unit type
This commit is contained in:
parent
c2bfc8b93b
commit
b7caffa373
9 changed files with 155 additions and 4 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("POST").Name(CreateUnitType)
|
||||
m.Path("/unit_types/{Id:.+}").Methods("GET").Name(UnitType)
|
||||
|
||||
return m
|
||||
|
|
|
@ -41,5 +41,6 @@ const (
|
|||
UpdateTextMeasurementType = "text_measurement_type:update"
|
||||
DeleteTextMeasurementType = "text_measurement_type:delete"
|
||||
|
||||
UnitType = "unit_type:get"
|
||||
UnitType = "unit_type:get"
|
||||
CreateUnitType = "unit_type:create"
|
||||
)
|
||||
|
|
Reference in a new issue