mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
18 lines
No EOL
615 B
JavaScript
18 lines
No EOL
615 B
JavaScript
const express = require('express')
|
|
const app = express()
|
|
const port = 3000
|
|
|
|
app.get('/menu', function (req, res) {
|
|
res.sendFile('mainMenu.html', { root: '../client/html' });
|
|
});
|
|
app.get('/createNewBlock', function (req, res) {
|
|
res.sendFile('createNewBlock.html', { root: '../client/html' });
|
|
});
|
|
app.get('/searchBlock', function (req, res) {
|
|
res.sendFile('searchForBlock.html', { root: '../client/html' });
|
|
});
|
|
app.get('/results', function (req, res) {
|
|
res.sendFile('searchResults.html', { root: '../client/html' });
|
|
});
|
|
|
|
app.listen(port, () => console.log(`Example app listening on port ${port}!`)) |