List unit types

This commit is contained in:
Matthew Dillon 2014-11-30 15:33:28 -09:00
parent b7caffa373
commit d535cd85ff
9 changed files with 152 additions and 0 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("GET").Name(UnitTypes)
m.Path("/unit_types/").Methods("POST").Name(CreateUnitType)
m.Path("/unit_types/{Id:.+}").Methods("GET").Name(UnitType)

View file

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