chore: refactor service and backend to use REST

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2024-01-12 15:39:03 +02:00
parent 13346970b4
commit 1a38100a8e
27 changed files with 407 additions and 359 deletions
+8 -1
View File
@@ -19,7 +19,9 @@ export default async function createPlugin(
return await createRouter({
logger: env.logger,
identity: env.identity,
notificationService: env.notificationService,
tokenManager: env.tokenManager,
database: env.database,
discovery: env.discovery,
});
}
```
@@ -37,3 +39,8 @@ async function main() {
apiRouter.use('/notifications', await notifications(notificationsEnv));
}
```
## Extending Notifications
The notifications can be extended with `NotificationProcessor`. These processors allow to decorate notifications
before they are sent or/and send the notifications to external services.