2020-03-02 20:50:33 +01:00
|
|
|
import express from "express";
|
|
|
|
import Stations from "../../middleware/Stations";
|
|
|
|
import { formatResponse } from "../../libs/Format";
|
|
|
|
|
|
|
|
const router = express.Router();
|
2020-03-06 15:49:16 +01:00
|
|
|
|
2020-03-02 20:50:33 +01:00
|
|
|
router.route("/").get(function(req, res, next) {
|
|
|
|
Stations.getAll(req, (err, response) => {
|
|
|
|
formatResponse(req, res, next, err, response);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router;
|