forked from StevenFupc/clothesMatchingRecommender
-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
23 lines (18 loc) · 682 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var express = require('express');
var app = express();
var topService = require('./router/topRouter');
var bottomService = require('./router/bottomRouter');
var shoeService = require('./router/shoeRouter');
var recommendationService = require('./router/recommendationRouter');
app.use('/top', topService)
.use('/bottom', bottomService)
.use('/shoe', shoeService)
.use('/recommendation', recommendationService);
app.get('/', function (req, res) {
res.send('Test localhost OK!');
});
var server = app.listen(3000, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Example app listening at http://%s:%s', host, port);
});