2021-02-21 19:02:31 +00:00
|
|
|
const LoopController = require("../../controllers/shared/loop");
|
2020-03-16 15:57:57 +00:00
|
|
|
const express = require("express");
|
|
|
|
const router = express.Router();
|
2021-02-21 19:02:31 +00:00
|
|
|
const authCheck = require("./authCheck");
|
2020-03-16 15:57:57 +00:00
|
|
|
|
|
|
|
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;
|