mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
Changes
This commit is contained in:
parent
c05b84455c
commit
6ba66efdbe
3 changed files with 20 additions and 1 deletions
19
Server/server.js
Normal file
19
Server/server.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const express = require('express')
|
||||
const app = express()
|
||||
const port = 3000
|
||||
|
||||
app.use(express.static('Client/Public'));
|
||||
app.get('/menu', function (req, res) {
|
||||
res.sendFile('title.html', { root: './Client/Views' });
|
||||
});
|
||||
app.get('/createNewBlock', function (req, res) {
|
||||
res.sendFile('game.html', { root: './client/Views' });
|
||||
});
|
||||
app.get('/searchBlock', function (req, res) {
|
||||
res.sendFile('about.html', { root: './client/Views' });
|
||||
});
|
||||
app.get('/results', function (req, res) {
|
||||
res.sendFile('menu.html', { root: './client/Views' });
|
||||
});
|
||||
|
||||
app.listen(port, () => console.log(`Example app listening on port ${port}!`))
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<body>
|
||||
|
||||
<link href="/createNewBlock.css" rel = "stylesheet">
|
||||
<link href="../css/createNewBlock.css" rel = "stylesheet">
|
||||
|
||||
<script src=""></script>
|
||||
<script src=""></script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue