Skip to content

Commit

Permalink
feat: add the @opencrvs/mosip event registration handler
Browse files Browse the repository at this point in the history
  • Loading branch information
naftis committed Dec 4, 2024
1 parent ee780d9 commit 61696ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"@hapi/boom": "^9.1.1",
"@hapi/hapi": "^20.0.1",
"@hapi/inert": "^6.0.3",
"@opencrvs/mosip": "^1.7.0-alpha.2",
"@opencrvs/toolkit": "^0.0.5",
"@types/chalk": "^2.2.0",
"@types/csv2json": "^1.4.0",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import { fontsHandler } from './api/fonts/handler'
import { certificateConfigurationHandler } from './api/certificate-configuration/handler'
import { recordNotificationHandler } from './api/record-notification/handler'
import { customEventHandler } from '@countryconfig/api/custom-event/handler'
import { mosipRegistrationHandler } from '@opencrvs/mosip'

export interface ITokenPayload {
sub: string
Expand Down Expand Up @@ -414,7 +415,7 @@ export async function createServer() {
server.route({
method: 'POST',
path: '/event-registration',
handler: eventRegistrationHandler,
handler: mosipRegistrationHandler({ url: 'http://mosip-api:2024' }),
options: {
tags: ['api'],
description:
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,13 @@
dependencies:
"@octokit/openapi-types" "^18.0.0"

"@opencrvs/mosip@^1.7.0-alpha.2":
version "1.7.0-alpha.2"
resolved "https://registry.yarnpkg.com/@opencrvs/mosip/-/mosip-1.7.0-alpha.2.tgz#b3de70d993607142d739c7ada0c021b0d0f32b46"
integrity sha512-UiZUxuUiNGP/9CuQh1yPtmXmZTRAFiY4jQI2qlihCXZ8A0JbdXut2g3Dw3dRNvA9SvUnix1uuQpmWU/tAePWJA==
dependencies:
"@hapi/hapi" "^20.0.1"

"@opencrvs/toolkit@^0.0.5":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@opencrvs/toolkit/-/toolkit-0.0.5.tgz#dbd3395b561c1eb3527b8cfc28b6e1dd301671f3"
Expand Down

0 comments on commit 61696ae

Please sign in to comment.