forked from hasura/imad-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
29 lines (24 loc) · 735 Bytes
/
server.js
File metadata and controls
29 lines (24 loc) · 735 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
var express = require('express');
var morgan = require('morgan');
var path = require('path');
var app = express();
app.use(morgan('combined'));
app.get('/sai',function(req,res){
res.send("sai nagendra");
})
app.get('/', function (req, res) {
res.sendFile(path.resolve(__dirname,'ui/index.html'));
});
app.get('/ui/main.js',function(req,res){
res.sendFile(path.join(__dirname,'ui/main.js'));
});
app.get('/ui/style.css', function (req, res) {
res.sendFile(path.join(__dirname, 'ui', 'style.css'));
});
app.get('/ui/madi.png', function (req, res) {
res.sendFile(path.join(__dirname, 'ui', 'madi.png'));
});
var port = 80;
app.listen(port, function () {
console.log(`IMAD course app listening on port ${port}!`);
});