Initial commit
This commit is contained in:
parent
a13ceef804
commit
8641fc9723
19 changed files with 303532 additions and 0 deletions
15
routes/v1/stations.js
Normal file
15
routes/v1/stations.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import express from "express";
|
||||
import Stations from "../../middleware/Stations";
|
||||
import { formatResponse } from "../../libs/Format";
|
||||
|
||||
const router = express.Router();
|
||||
/**
|
||||
* Ensemble des routes permettant à un client de s'inscrire sur des events
|
||||
*/
|
||||
router.route("/").get(function(req, res, next) {
|
||||
Stations.getAll(req, (err, response) => {
|
||||
formatResponse(req, res, next, err, response);
|
||||
});
|
||||
});
|
||||
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue