red-coder-bh/dist/routes/banner/index.js

13 lines
490 B
JavaScript
Raw Normal View History

2022-04-18 21:42:20 +03:00
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.bannerRouter = void 0;
const express_1 = require("express");
const data_json_1 = __importDefault(require("./data.json"));
exports.bannerRouter = (0, express_1.Router)();
exports.bannerRouter.get('/banner-data', (req, res) => {
res.send(data_json_1.default);
});