Ride-The-Lightning-RTL/routes/graph.js
ShahanaFarooqui a9e8ca6a75 Angular 8 Update
Angular 8 Update
2019-07-27 14:20:17 -04:00

13 lines
545 B
JavaScript

const graphController = require("../controllers/graph");
const express = require("express");
const router = express.Router();
const authCheck = require("./authCheck");
router.get("/", authCheck, graphController.getDescribeGraph);
router.get("/info", authCheck, graphController.getGraphInfo);
router.get("/node/:pubKey", authCheck, graphController.getGraphNode);
router.get("/edge/:chanid", authCheck, graphController.getGraphEdge);
router.get("/routes/:destPubkey/:amount", authCheck, graphController.getQueryRoutes);
module.exports = router;