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

const dataRouter = express.Router();

dataRouter.get(routes.dataInput, getDataInput);
12
dataRouter.get(routes.dataUser, onlyPrivate, getUserWeatherData);
13
14

export default dataRouter;