-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver.js
More file actions
33 lines (27 loc) · 776 Bytes
/
Copy pathserver.js
File metadata and controls
33 lines (27 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const express = require("express");
const { inspect } = require('util');
const PORT = 8080;
//APP
const app = express();
app.get("/", (req, res) => {
const reqStr = inspect(req, { compact:true, depth: Infinity });
console.log(reqStr);
res.send("mymy");
});
app.get("/list", (req, res) => {
const reqStr = inspect(req, { compact:true, depth: Infinity });
console.log(reqStr);
res.send("/list");
});
app.get("/monot", (req, res) => {
const reqStr = inspect(req, { compact:true, depth: Infinity });
console.log(reqStr);
res.send("/monot");
});
app.get("/monot/list", (req, res) => {
const reqStr = inspect(req, { compact:true, depth: Infinity });
console.log(reqStr);
res.send("/monot/list");
});
app.listen(PORT);
console.log("Server is running");