species update wip
This commit is contained in:
parent
5244ae529a
commit
c8d1d0a84f
5 changed files with 100 additions and 0 deletions
|
@ -21,6 +21,7 @@ func API() *mux.Router {
|
|||
m.Path("/species").Methods("GET").Name(SpeciesList)
|
||||
m.Path("/species").Methods("POST").Name(CreateSpecies)
|
||||
m.Path("/species/{Id:.+}").Methods("GET").Name(Species)
|
||||
m.Path("/species/{Id:.+}").Methods("PUT").Name(UpdateSpecies)
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
|
@ -14,4 +14,5 @@ const (
|
|||
Species = "species"
|
||||
CreateSpecies = "species:create"
|
||||
SpeciesList = "species:list"
|
||||
UpdateSpecies = "species:update"
|
||||
)
|
||||
|
|
Reference in a new issue