SimpleCloudNotifier/scnserver/api/handler/api.go

19 lines
368 B
Go
Raw Permalink Normal View History

2022-11-18 21:25:40 +01:00
package handler
import (
primarydb "blackforestbytes.com/simplecloudnotifier/db/impl/primary"
2022-11-18 21:25:40 +01:00
"blackforestbytes.com/simplecloudnotifier/logic"
)
type APIHandler struct {
2022-11-19 15:13:47 +01:00
app *logic.Application
database *primarydb.Database
2022-11-19 15:13:47 +01:00
}
func NewAPIHandler(app *logic.Application) APIHandler {
return APIHandler{
app: app,
database: app.Database.Primary,
2022-11-19 15:13:47 +01:00
}
2022-11-18 21:25:40 +01:00
}