Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
401 changes: 395 additions & 6 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"@verida/encryption-utils": "^3.0.1",
"@verida/types": "^3.0.2",
"@verida/vda-did-resolver": "^4.4.5",
"agntcy-dir": "^0.5.6",
"bcrypt": "^5.1.1",
"bs58": "^6.0.0",
"cookie-parser": "^1.4.7",
Expand Down
5 changes: 5 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { OrganisationController } from './controllers/admin/organisation.js';
import { AccreditationController } from './controllers/api/accreditation.js';
import { OperationController } from './controllers/api/operation.js';
import { ProvidersController } from './controllers/api/providers.controller.js';
import { OasfController } from './controllers/api/oasf.js';

dotenv.config();

Expand Down Expand Up @@ -405,6 +406,10 @@ class App {
app.get('/admin/organisation/get', new OrganisationController().get);
}

app.post('/oasf/publish', OasfController.recordPublishValidator, new OasfController().publishRecord);
app.get('/oasf/search', OasfController.recordSearchValidator, new OasfController().searchRecord);
app.get('/oasf/:cid', OasfController.recordGetValidator, new OasfController().getRecord);

// 404 for all other requests
app.all('*', (_req, res) => res.status(StatusCodes.BAD_REQUEST).send('Bad request'));
}
Expand Down
Loading
Loading