This commit is contained in:
Federico Kereki
2018-05-08 23:16:42 -03:00
parent 3ce2841648
commit 1c83954d83
5 changed files with 114 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/* @flow */
"use strict";
const express = require("express");
const routerCities = express.Router();
routerCities.get("/MVD", (req, res) => {
res.send(`GET Montevideo... path=${req.originalUrl}`);
});
routerCities.get("/:id", (req, res) => {
res.send(`GET City... path=${req.originalUrl}`);
});
routerCities.delete("/:id", (req, res) => {
res.send(`DELETE City... path=${req.originalUrl}`);
});
routerCities.post("/", (req, res) => {
res.send(`POST City... path=${req.originalUrl}`);
});
routerCities.put("/:id", (req, res) => {
res.send(`PUT City... path=${req.originalUrl}`);
});
module.exports = routerCities;