Showing
2 changed files
with
24 additions
and
0 deletions
Back-end/apiRouter.js
0 → 100644
1 | +const express = require('express'); | ||
2 | + | ||
3 | +const router = express.Router(); | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | +router.get('/', function(req,res) { | ||
8 | + | ||
9 | + res.send({greeting: 'Hello React x Node.js'}); | ||
10 | + | ||
11 | +}); | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | +module.exports = router; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment