Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add swagger documentation for deposit #28

Open
github-actions bot opened this issue Apr 4, 2023 · 0 comments
Open

Add swagger documentation for deposit #28

github-actions bot opened this issue Apr 4, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

github-actions bot commented Apr 4, 2023

https://api.github.com/bankforall/api/blob/5256080e255eeae34cda06f190d877d5161e45ec/routes/transaction.route.js#L6

const router = require("express").Router();
const transactionController = require("../controllers/transaction.controller");

const passport = require("passport");

// TODO: Add swagger documentation for deposit
router.post(
  "/deposit",
  passport.authenticate("jwt", { session: false }),
  transactionController.deposit
);

// TODO: Add swagger documentation for withdraw
router.post(
  "/withdraw",
  passport.authenticate("jwt", { session: false }),
  transactionController.withdraw
);

module.exports = router;
@github-actions github-actions bot added the todo label Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants