mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
Update server.js
This commit is contained in:
parent
4d009c3c93
commit
5c2645adaa
1 changed files with 5 additions and 5 deletions
|
|
@ -2,18 +2,18 @@ const express = require('express')
|
|||
const app = express()
|
||||
const port = 3000
|
||||
|
||||
app.use(express.static('Client/Public'));
|
||||
app.use(express.static('client/public'));
|
||||
app.get('/menu', function (req, res) {
|
||||
res.sendFile('title.html', { root: './Client/Views' });
|
||||
res.sendFile('mainMenu.html', { root: './client/html' });
|
||||
});
|
||||
app.get('/createNewBlock', function (req, res) {
|
||||
res.sendFile('game.html', { root: './client/Views' });
|
||||
res.sendFile('createNewBlock.html', { root: '../client/html' });
|
||||
});
|
||||
app.get('/searchBlock', function (req, res) {
|
||||
res.sendFile('about.html', { root: './client/Views' });
|
||||
res.sendFile('about.html', { root: './client/html' });
|
||||
});
|
||||
app.get('/results', function (req, res) {
|
||||
res.sendFile('menu.html', { root: './client/Views' });
|
||||
res.sendFile('searchResults.html', { root: './client/html' });
|
||||
});
|
||||
|
||||
app.listen(port, () => console.log(`Example app listening on port ${port}!`))
|
||||
Loading…
Reference in a new issue