Delete strain.

This commit is contained in:
Matthew Dillon 2014-10-29 14:11:50 -08:00
parent ff0e37d2ef
commit df95dfc930
9 changed files with 141 additions and 0 deletions

View file

@ -29,6 +29,7 @@ func API() *mux.Router {
m.Path("/strains").Methods("POST").Name(CreateStrain)
m.Path("/strains/{Id:.+}").Methods("GET").Name(Strain)
m.Path("/strains/{Id:.+}").Methods("PUT").Name(UpdateStrain)
m.Path("/strains/{Id:.+}").Methods("DELETE").Name(DeleteStrain)
return m
}

View file

@ -21,4 +21,5 @@ const (
CreateStrain = "strain:create"
Strains = "strain:list"
UpdateStrain = "strain:update"
DeleteStrain = "strain:delete"
)