Update a unit type

This commit is contained in:
Matthew Dillon 2014-11-30 15:55:02 -09:00
parent dfa2dd2eba
commit 76baee1fa7
9 changed files with 158 additions and 0 deletions

View file

@ -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
}

View file

@ -44,4 +44,5 @@ const (
UnitType = "unit_type:get"
CreateUnitType = "unit_type:create"
UnitTypes = "unit_type:list"
UpdateUnitType = "unit_type:update"
)