firebase implementation

This commit is contained in:
2022-11-19 14:57:45 +01:00
committed by Mike Schwörer
parent e53f40866e
commit fb37f94c0a
6 changed files with 271 additions and 21 deletions

View File

@@ -6,6 +6,7 @@ import (
"blackforestbytes.com/simplecloudnotifier/common"
"blackforestbytes.com/simplecloudnotifier/common/ginext"
"blackforestbytes.com/simplecloudnotifier/db"
"blackforestbytes.com/simplecloudnotifier/firebase"
"blackforestbytes.com/simplecloudnotifier/logic"
"fmt"
"github.com/rs/zerolog/log"
@@ -33,7 +34,9 @@ func main() {
router := api.NewRouter(app)
app.Init(conf, ginengine)
fb := firebase.NewFirebaseApp()
app.Init(conf, ginengine, &fb)
router.Init(ginengine)