summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-09-05 19:15:42 +0800
committerGitHub <noreply@github.com>2023-09-05 11:15:42 +0000
commit6c73c0da530649d0d629359e13d0373b72568f41 (patch)
treed18ecd31d7091c239deae721d851a2c2b419e03f /routers
parentdc2dd76d98e3fcdfde922812f793a1db1f1ca555 (diff)
downloadgitea-6c73c0da530649d0d629359e13d0373b72568f41.tar.gz
gitea-6c73c0da530649d0d629359e13d0373b72568f41.zip
Move ui notification to service layer (#26907)
Extract from #22266
Diffstat (limited to 'routers')
-rw-r--r--routers/init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/init.go b/routers/init.go
index ad7da70718..f311b4f95d 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -48,6 +48,7 @@ import (
repo_service "code.gitea.io/gitea/services/repository"
"code.gitea.io/gitea/services/repository/archiver"
"code.gitea.io/gitea/services/task"
+ "code.gitea.io/gitea/services/uinotification"
"code.gitea.io/gitea/services/webhook"
)
@@ -119,6 +120,7 @@ func InitWebInstalled(ctx context.Context) {
mailer.NewContext(ctx)
mustInit(cache.NewContext)
notification.NewContext()
+ mustInit(uinotification.Init)
mustInit(archiver.Init)
highlight.NewContext()