Delete a unit type

This commit is contained in:
Matthew Dillon 2014-11-30 16:10:38 -09:00
parent 76baee1fa7
commit eccbffb86d
9 changed files with 141 additions and 0 deletions

View file

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

View file

@ -45,4 +45,5 @@ const (
CreateUnitType = "unit_type:create"
UnitTypes = "unit_type:list"
UpdateUnitType = "unit_type:update"
DeleteUnitType = "unit_type:delete"
)