-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.js
41 lines (21 loc) · 787 Bytes
/
server.js
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
34
35
36
37
38
39
40
41
var Express = require("express");
var cors = require("cors");
var BodyParser = require("body-parser");
var hostname = "localhost";
var port = 3000;
var app = Express();
app.use(cors());
app.use(BodyParser.urlencoded({ extented: false }));
app.use(BodyParser.json());
app.use("/client", require("./router/client"));
app.use("/salon", require("./router/salon"));
app.use("/produit", require("./router/produit"));
app.use("/coiffeur", require("./router/coiffeur"));
app.use("/notersalon", require("./router/notersalon"));
app.use("/noterproduit", require("./router/noterproduit"));
app.use("/", require("./router/nodemailer"));
app.listen(port, hostname, function() {
console.log(
"mon server fonctionne sur http://" + hostname + ":" + port + "/n"
);
});