globalRouter.js 271 Bytes
import express from "express";
import routes from "../routes";
import {home, search} from "../controllers/homeController";

const globalRouter = express.Router();

globalRouter.get(routes.home, home);
globalRouter.get(routes.search, search);

export default globalRouter;