Add some user related commands

This commit is contained in:
Miguel de la Cruz 2021-09-13 12:16:25 +02:00
parent d5a297cb86
commit 83a2d2a31f
8 changed files with 223 additions and 11 deletions

View file

@ -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}
}