move context keys definition into main api file
This commit is contained in:
parent
605cf97298
commit
989f03040a
4 changed files with 12 additions and 12 deletions
|
|
@ -17,6 +17,12 @@ const (
|
|||
roleAdmin = "admin"
|
||||
)
|
||||
|
||||
type ctxKey int
|
||||
|
||||
const (
|
||||
ctxAccount ctxKey = iota
|
||||
)
|
||||
|
||||
// API provides admin application resources and handlers.
|
||||
type API struct {
|
||||
Accounts *AccountResource
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue