Delete a unit type
This commit is contained in:
parent
76baee1fa7
commit
eccbffb86d
9 changed files with 141 additions and 0 deletions
|
@ -57,6 +57,7 @@ func API() *mux.Router {
|
|||
m.Path("/unit_types/").Methods("POST").Name(CreateUnitType)
|
||||
m.Path("/unit_types/{Id:.+}").Methods("GET").Name(UnitType)
|
||||
m.Path("/unit_types/{Id:.+}").Methods("PUT").Name(UpdateUnitType)
|
||||
m.Path("/unit_types/{Id:.+}").Methods("DELETE").Name(DeleteUnitType)
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
|
@ -45,4 +45,5 @@ const (
|
|||
CreateUnitType = "unit_type:create"
|
||||
UnitTypes = "unit_type:list"
|
||||
UpdateUnitType = "unit_type:update"
|
||||
DeleteUnitType = "unit_type:delete"
|
||||
)
|
||||
|
|
Reference in a new issue