Update a unit type
This commit is contained in:
parent
dfa2dd2eba
commit
76baee1fa7
9 changed files with 158 additions and 0 deletions
|
@ -56,6 +56,7 @@ func API() *mux.Router {
|
|||
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)
|
||||
m.Path("/unit_types/{Id:.+}").Methods("PUT").Name(UpdateUnitType)
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
|
@ -44,4 +44,5 @@ const (
|
|||
UnitType = "unit_type:get"
|
||||
CreateUnitType = "unit_type:create"
|
||||
UnitTypes = "unit_type:list"
|
||||
UpdateUnitType = "unit_type:update"
|
||||
)
|
||||
|
|
Reference in a new issue