Skip to content

Commit 233f9dd

Browse files
authored
Add files via upload
1 parent d9f7c9a commit 233f9dd

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

backend/package.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "crews_challenge_MCJ-master",
3+
"version": "1.0.0",
4+
"description": "<<<<<<< HEAD Desafio de tripulaciones The Bridge Jun-20",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC"
12+
}

backend/servre.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
const express = require("express");
3+
const bodyParser = require("body-parser");
4+
const app = express();
5+
const port = 3000;
6+
7+
var router = express.Router();
8+
9+
router.get('/', function(req, res, next){
10+
res.json([
11+
12+
])
13+
})
14+
15+
app.use("/", express.static("public"));
16+
app.use("/", express.static(__dirname + "/public"));
17+
18+
19+
git
20+
app.listen(port, () => {
21+
console.log(`Example app listening at http://localhost:${port}`);
22+
});

0 commit comments

Comments
 (0)