in the middle of rewriting it
This commit is contained in:
@@ -1,22 +1,14 @@
|
||||
module.exports = function(app, package) {
|
||||
|
||||
/*
|
||||
* GET home page.
|
||||
*/
|
||||
|
||||
var package = require(__dirname+"/../package.json");
|
||||
|
||||
exports.index = function(req, res) {
|
||||
res.render(path, {
|
||||
projecturl: package.documentation,
|
||||
packagename: package.name,
|
||||
packageversion: package.version
|
||||
[
|
||||
'',
|
||||
'webrtc'
|
||||
].forEach(function(p) {
|
||||
app.get('/'+p, function(req, res) {
|
||||
res.render(p?p:'index', {
|
||||
package: package
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
exports.webrtc = function(req, res) {
|
||||
res.render('webrtc', {
|
||||
projecturl: package.documentation,
|
||||
packagename: package.name,
|
||||
packageversion: package.version
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user