-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
42 lines (34 loc) · 778 Bytes
/
main.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
42
const express = require('express');
const app = express();
const path = require('path');
/**
* home page
*/
app.get('/', function(req, res){
res.sendFile(path.join(__dirname, '/index.html'));
})
/**
* place order route
*/
app.get('/neworder', function(req, res){
res.sendFile(path.join(__dirname, 'files','/placeorder.html'));
})
/**
* Prediction
*/
app.get('/prediction', function(req, res){
res.sendFile(path.join(__dirname, 'files','/prediction.html'));
})
/**
* Kitchen Display
*/
app.get('/kitchendisplay', function(req, res){
res.sendFile(path.join(__dirname, 'files','/kitchen.html'));
})
/**
* Download Report
*/
app.get('/report', function(req, res){
res.sendFile(path.join(__dirname, 'files','/report.html'));
})
app.listen(3000);