Add some user related commands
This commit is contained in:
parent
d5a297cb86
commit
83a2d2a31f
8 changed files with 223 additions and 11 deletions
|
@ -1,13 +1,13 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"git.ctrlz.es/mgdelacroix/craban/services/store"
|
||||
"git.ctrlz.es/mgdelacroix/craban/app"
|
||||
)
|
||||
|
||||
type API struct {
|
||||
store *store.Store
|
||||
App *app.App
|
||||
}
|
||||
|
||||
func NewAPI(store *store.Store) (*API, error) {
|
||||
return &API{store: store}, nil
|
||||
func NewAPI(app *app.App) *API {
|
||||
return &API{App: app}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue