diff --git a/package.json b/package.json index 9b98801..a2f4b0d 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "ens-did-resolver": "^1.0.0", "ethr-did-resolver": "^8.0.0", "express": "^4.18.2", + "express-actuator": "^1.8.4", "nacl-did": "^1.0.1", "peer-did-resolver": "^1.0.1", "plc-did-resolver": "^1.0.0", diff --git a/src/app.js b/src/app.js index be15dfd..c4e60ab 100644 --- a/src/app.js +++ b/src/app.js @@ -6,6 +6,7 @@ import { getResolver as getPeerResolver } from 'peer-did-resolver' import { getResolver as getPlcResolver } from 'plc-did-resolver' import nacl from 'nacl-did' import express from 'express' +import actuator from 'express-actuator' // import { CeramicClient } from '@ceramicnetwork/http-client' // import { getResolver as get3IDResolver } from '@ceramicnetwork/3id-did-resolver' @@ -71,6 +72,8 @@ const resolver = new Resolver( const app = express() +app.use(actuator()) + app.get('/1.0/identifiers/*', function (req, res) { const url = req.url const regex = /\/1.0\/identifiers\/(did:.*)/ diff --git a/yarn.lock b/yarn.lock index 51c88d5..5a2788a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2407,6 +2407,11 @@ dateformat@^3.0.0: resolved "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz" integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== +dayjs@^1.11.3: + version "1.11.8" + resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.8.tgz#4282f139c8c19dd6d0c7bd571e30c2d0ba7698ea" + integrity sha512-LcgxzFoWMEPO7ggRv1Y2N31hUf2R0Vj7fuy/m+Bg1K8rr+KAs1AEy4y9jd5DXe8pbHgX+srkHNS7TH6Q6ZhYeQ== + debug@2.6.9: version "2.6.9" resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" @@ -2746,6 +2751,14 @@ expect@^29.5.0: jest-message-util "^29.5.0" jest-util "^29.5.0" +express-actuator@^1.8.4: + version "1.8.4" + resolved "https://registry.yarnpkg.com/express-actuator/-/express-actuator-1.8.4.tgz#4be0c469aefbd288a7916f7f1a86674961525083" + integrity sha512-V0VbfdnxYTp2IPIDh78LVoxShW0CL83rbLQ/BtFansamEaX93DepIhy9v78zZysJoPvce8nmS3TumwYSV4XKiw== + dependencies: + dayjs "^1.11.3" + properties-reader "^2.2.0" + express@^4.18.2: version "4.18.2" resolved "https://registry.npmjs.org/express/-/express-4.18.2.tgz" @@ -5443,6 +5456,13 @@ promzard@^1.0.0: dependencies: read "^2.0.0" +properties-reader@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/properties-reader/-/properties-reader-2.2.0.tgz#41d837fe143d8d5f2386b6a869a1975c0b2c595c" + integrity sha512-CgVcr8MwGoBKK24r9TwHfZkLLaNFHQ6y4wgT9w/XzdpacOOi5ciH4hcuLechSDAwXsfrGQtI2JTutY2djOx2Ow== + dependencies: + mkdirp "^1.0.4" + proto-list@~1.2.1: version "1.2.4" resolved "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz"