Skip to content

Add swagger documentation for deposit #28

@github-actions

Description

@github-actions

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions