dataRouter.js 358 Bytes
Newer Older
1
2
import express from "express";
import routes from "../routes";
3
4
import { getDataInput, getUserData } from "../controllers/dataController";
import { onlyPrivate } from "../middlewares";
5
6
7
8

const dataRouter = express.Router();

dataRouter.get(routes.dataInput, getDataInput);
9
dataRouter.get(routes.dataUser, onlyPrivate, getUserData);
10
11

export default dataRouter;