Skip to content
Snippets Groups Projects
Commit 11b0feb0 authored by Éloïs's avatar Éloïs
Browse files

[fix] add offset param

parent 827afb46
No related branches found
No related tags found
1 merge request!62Dev2
...@@ -13,7 +13,7 @@ const bodyParser = require('body-parser'); ...@@ -13,7 +13,7 @@ const bodyParser = require('body-parser');
const routes = require(__dirname + '/../routes'); const routes = require(__dirname + '/../routes');
const tpl = require(__dirname + '/tplit.js'); const tpl = require(__dirname + '/tplit.js');
module.exports = (host, port, appParente, duniterServer, cache) => { module.exports = (host, port, appParente, duniterServer, offset, cache) => {
var app = express(); var app = express();
...@@ -32,6 +32,7 @@ module.exports = (host, port, appParente, duniterServer, cache) => { ...@@ -32,6 +32,7 @@ module.exports = (host, port, appParente, duniterServer, cache) => {
app.locals.duniterServer = duniterServer app.locals.duniterServer = duniterServer
app.locals.currencyName = duniterServer.conf.currency app.locals.currencyName = duniterServer.conf.currency
app.locals.offset = offset
app.locals.cache = cache app.locals.cache = cache
app.locals.HTML_HEAD = fs.readFileSync(__dirname + '/../views/HEAD.html', 'utf-8') app.locals.HTML_HEAD = fs.readFileSync(__dirname + '/../views/HEAD.html', 'utf-8')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment