Skip to content

Commit

Permalink
Merge pull request #144 from advanced-computer-lab-2023/swagger-api
Browse files Browse the repository at this point in the history
Swagger-api
  • Loading branch information
YehiaFarghaly authored Jan 14, 2024
2 parents bd4ac1b + 7ec43ea commit cdb9b2f
Show file tree
Hide file tree
Showing 28 changed files with 5,743 additions and 34 deletions.
5 changes: 4 additions & 1 deletion authentication/.babelrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"test": {
"plugins": ["@babel/plugin-transform-modules-commonjs"]
}
}
},
"plugins": [
["@babel/plugin-syntax-import-attributes", { "deprecatedAssertSyntax": true }]
]
}
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
220 changes: 215 additions & 5 deletions authentication/package-lock.json

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

Loading

0 comments on commit cdb9b2f

Please sign in to comment.