Skip to content

Commit

Permalink
feat: Updated server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Sep 26, 2023
1 parent a7e0357 commit 2570161
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Express from 'express';
import router from './lib/index.js';
import swaggerDocument from './openapi/swagger.json' assert { type: "json" };
import swaggerUi from 'swagger-ui-express';
import setupGraphQL from './lib/graphql.js';

const app = Express();
const port = process.env.PORT || 3000;
Expand All @@ -14,6 +15,8 @@ var options = {

app.use('/openapi.json', Express.static('openapi/swagger.json'));

setupGraphQL(app);

app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument, options));
app.use('/api/', router);

Expand Down

0 comments on commit 2570161

Please sign in to comment.