feat(m5): PWA service worker, offline Dexie store, outbox, sync endpoints
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/chi/v5/middleware"
|
||||
"github.com/wotra/wotra/internal/service"
|
||||
"github.com/wotra/wotra/internal/store"
|
||||
)
|
||||
|
||||
// NewRouter builds the full HTTP router.
|
||||
@@ -16,6 +17,7 @@ func NewRouter(
|
||||
daySvc *service.DayService,
|
||||
settingsSvc *service.SettingsService,
|
||||
weekSvc *service.WeekService,
|
||||
syncStore *store.SyncStore,
|
||||
staticFiles fs.FS,
|
||||
) http.Handler {
|
||||
r := chi.NewRouter()
|
||||
@@ -44,6 +46,9 @@ func NewRouter(
|
||||
|
||||
weekH := NewWeekHandler(weekSvc)
|
||||
weekH.Routes(r)
|
||||
|
||||
syncH := NewSyncHandler(syncStore)
|
||||
syncH.Routes(r)
|
||||
})
|
||||
|
||||
// Serve embedded SPA if available (production build)
|
||||
|
||||
Reference in New Issue
Block a user