Skip to content
Snippets Groups Projects

chore: abstract dtos to encompass a wider range of use cases and fix for out of band proof requests

Closed Boyan Tsolov requested to merge core-dtos into main
All threads resolved!
Compare and Show latest version
21 files
+ 159
185
Compare changes
  • Side-by-side
  • Inline
Files
21
+ 12
8
@@ -17,15 +17,19 @@ async function bootstrap() {
const port = process.env.AGENT_PORT || 3001;
app.enableShutdownHooks();
const config = new DocumentBuilder()
.setTitle("Agent")
.setDescription("Agent API")
.setVersion("1.0")
.build();
if (process.env.SWAGGER === "true") {
const config = new DocumentBuilder()
.setTitle("Agent")
.setDescription("Agent API")
.setVersion("1.0")
.build();
const document = SwaggerModule.createDocument(app, config);
fs.writeFileSync("./agent-swagger.json", JSON.stringify(document));
SwaggerModule.setup("api", app, document);
const document = SwaggerModule.createDocument(app, config);
fs.writeFileSync("./agent-swagger.json", JSON.stringify(document));
SwaggerModule.setup("api", app, document);
Logger.log(`Swagger file written`);
return process.kill(0);
}
await app.listen(port, "0.0.0.0");
Logger.log(
Loading