You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
867 B
JavaScript
18 lines
867 B
JavaScript
const LoopController = require("../../controllers/shared/loop");
|
|
const express = require("express");
|
|
const router = express.Router();
|
|
const authCheck = require("./authCheck");
|
|
|
|
router.get("/in/terms", authCheck, LoopController.loopInTerms);
|
|
router.get("/in/quote/:amount", authCheck, LoopController.loopInQuote);
|
|
router.get("/in/termsAndQuotes", authCheck, LoopController.loopInTermsAndQuotes);
|
|
router.post("/in", authCheck, LoopController.loopIn);
|
|
router.get("/out/terms", authCheck, LoopController.loopOutTerms);
|
|
router.get("/out/quote/:amount", authCheck, LoopController.loopOutQuote);
|
|
router.get("/out/termsAndQuotes", authCheck, LoopController.loopOutTermsAndQuotes);
|
|
router.post("/out", authCheck, LoopController.loopOut);
|
|
router.get("/swaps", authCheck, LoopController.swaps);
|
|
router.get("/swap/:id", authCheck, LoopController.swap);
|
|
|
|
module.exports = router;
|