|
|
@ -1,7 +1,7 @@ |
|
|
|
const nunjucks = require('nunjucks'); |
|
|
|
const express = require('express'); |
|
|
|
const nunjuckFilters = require('./lib/nunjuck-filters'); |
|
|
|
const viewModel = require('./viewModels'); |
|
|
|
const controllers = require('./controllers'); |
|
|
|
const app = express(); |
|
|
|
const port = process.env.port || 3000; |
|
|
|
|
|
|
@ -16,6 +16,6 @@ app.use((req, res, next) => { |
|
|
|
next(); |
|
|
|
}); |
|
|
|
|
|
|
|
app.get('/', viewModel.listing); |
|
|
|
app.get('/', controllers.listing); |
|
|
|
|
|
|
|
app.listen(port, () => console.log(`Tor Explorer listening on port ${port}`)); |
|
|
|