removed defunct installation routes
parent
f04a948152
commit
71bdd4608b
@ -1,37 +0,0 @@
|
|||||||
|
|
||||||
var RDB = require('../redis.js');
|
|
||||||
|
|
||||||
(function(Install) {
|
|
||||||
Install.create_routes = function(app) {
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var routes = ['basic', 'redis', 'mail', 'social', 'privileges'];
|
|
||||||
|
|
||||||
for (var i=0, ii=routes.length; i<ii; i++) {
|
|
||||||
(function(route) {
|
|
||||||
app.get('/install/' + route, function(req, res) {
|
|
||||||
res.send(templates['install/header'] + app.create_route('install/' + route) + templates['install/footer']);
|
|
||||||
});
|
|
||||||
}(routes[i]));
|
|
||||||
}
|
|
||||||
}());
|
|
||||||
|
|
||||||
//todo consolidate.
|
|
||||||
app.get('/install', function(req, res) {
|
|
||||||
res.send(templates['install/header'] + app.create_route('install/basic') + templates['install/footer']);
|
|
||||||
});
|
|
||||||
app.get('/install/index', function(req, res) {
|
|
||||||
res.send(templates['install/header'] + app.create_route('install/basic') + templates['install/footer']);
|
|
||||||
});
|
|
||||||
|
|
||||||
app.get('/api/install/basic', function(req, res) {
|
|
||||||
res.send('{}');
|
|
||||||
});
|
|
||||||
|
|
||||||
app.get('/api/install', function(req, res) {
|
|
||||||
res.send('{}');
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
}(exports));
|
|
Loading…
Reference in New Issue