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
+20
View File
@@ -0,0 +1,20 @@
/* @flow */
"use strict";
const express = require("express");
const routerCountries = express.Router();
routerCountries.get("/", (req, res) => {
res.send(`All countries... path=${req.originalUrl}`);
});
routerCountries.get("/UY", (req, res) => {
res.send(`GET UY (Uruguay)... path=${req.originalUrl}`);
});
routerCountries.get("/:country", (req, res) => {
res.send(`GET Single country... ${req.params.country}`);
});
module.exports = routerCountries;