Skip to content

Commit

Permalink
Merge branch 'swagger-api' of https://github.com/advanced-computer-la…
Browse files Browse the repository at this point in the history
  • Loading branch information
Aelmeky committed Jan 13, 2024
2 parents 2215870 + 0800d67 commit 0993533
Show file tree
Hide file tree
Showing 8 changed files with 1,232 additions and 16 deletions.
3 changes: 3 additions & 0 deletions authentication/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import cookieParser from 'cookie-parser';
import { user } from './src/api/user.js';
import { resetPassword } from './src/api/resetPassword.js';
import cors from 'cors';
import swaggerUi from "swagger-ui-express";
import { default as swaggerFile } from './src/swagger/swagger.json' assert { type: "json" };


const app = express();
Expand All @@ -18,6 +20,7 @@ app.use(cors({
credentials: true,
}));

app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerFile));

user(app);
resetPassword(app);
Expand Down
204 changes: 199 additions & 5 deletions authentication/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"mongoose": "^7.6.0",
"morgan": "^1.10.0",
"nodemailer": "^6.9.6",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0",
"uuid": "^9.0.1"
},
"devDependencies": {
Expand All @@ -34,4 +36,4 @@
"jest": "^29.7.0",
"supertest": "^6.3.3"
}
}
}
Loading

0 comments on commit 0993533

Please sign in to comment.