Starting Angular FrontEnd
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
var path = require('path');
|
||||
var express = require('express');
|
||||
|
||||
var FrontController = function(app) {
|
||||
'use strict';
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.sendFile(path.join(__dirname, '../../../front/src/main.html'));
|
||||
});
|
||||
|
||||
app.get('/about', function(req, res) {
|
||||
res.sendFile(path.join(__dirname, '../../../front/src/main.html'));
|
||||
});
|
||||
|
||||
app.get('/results/:runId', function(req, res) {
|
||||
res.sendFile(path.join(__dirname, '../../../front/src/main.html'));
|
||||
});
|
||||
|
||||
app.use('/front', express.static(path.join(__dirname, '../../../front/src')));
|
||||
app.use('/bower_components', express.static(path.join(__dirname, '../../../bower_components')));
|
||||
};
|
||||
|
||||
module.exports = FrontController;
|
||||
@@ -1,13 +0,0 @@
|
||||
var UiController = function(app) {
|
||||
'use strict';
|
||||
|
||||
|
||||
// Create a new run
|
||||
app.get('/', function(req, res) {
|
||||
|
||||
res.setHeader('Content-Type', 'text/html');
|
||||
res.send('Test');
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = UiController;
|
||||
Reference in New Issue
Block a user