Create a unit type

This commit is contained in:
Matthew Dillon 2014-11-30 15:11:51 -09:00
parent c2bfc8b93b
commit b7caffa373
9 changed files with 155 additions and 4 deletions

View file

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

View file

@ -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"
)