Added views and routes for benchmarks
This commit is contained in:
7
index.js
7
index.js
@@ -36,6 +36,7 @@ app.use(express.static('public'));
|
||||
const indexRoutes = require('./src/routes/index');
|
||||
const projectRoutes = require('./src/routes/project');
|
||||
const hardwareRoutes = require('./src/routes/hardware');
|
||||
const benchmarkRoutes = require('./src/routes/benchmark');
|
||||
|
||||
// register routes
|
||||
app.get('/', indexRoutes.getIndex);
|
||||
@@ -51,6 +52,12 @@ app.get('/hardware/list', hardwareRoutes.getList);
|
||||
app.get('/hardware/add', hardwareRoutes.getAdd);
|
||||
app.post('/hardware/add', hardwareRoutes.postAdd);
|
||||
app.get('/hardware/:hardware_id', hardwareRoutes.getView);
|
||||
// benchmark routes
|
||||
app.get('/benchmark', benchmarkRoutes.getIndex);
|
||||
app.get('/benchmark/list', benchmarkRoutes.getList);
|
||||
app.get('/benchmark/add', benchmarkRoutes.getAdd);
|
||||
app.post('/benchmark/add', benchmarkRoutes.postAdd);
|
||||
app.get('/benchmark/:benchmark_id', benchmarkRoutes.getView);
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Leviathan listening on port ${port}`);
|
||||
|
Reference in New Issue
Block a user