Viewing File: /home/ubuntu/efiexchange-node-base/src/routes/index.ts

import express from "express";
import userAppRoutes from "./userApp.routes";
import bitcoinRoutes from "./bitcoin.routes";
import ethereumRoutes from "./ethereum.routes";
import cryptoExchangeRoutes from "./cryptoExchange.routes";
import { notFoundRouter } from "@shared/infra/http/routes/notFound.routes";

const Route = express.Router();

Route.get("/", (req: any, res: any) => {
  res.json({ key: "Welcome to Herald Exchange" });
});

Route.get("/healthcheck", (req: any, res: any) => res.sendStatus(200));

Route.use("/user", userAppRoutes);
Route.use("/user/bitcoin", bitcoinRoutes);
Route.use("/user/ethereum", ethereumRoutes);
Route.use("/user/crypto-exchange", cryptoExchangeRoutes);

Route.use(notFoundRouter);

const mainRoutes = Route;

export default mainRoutes;
Back to Directory File Manager