mirror of https://gitee.com/bigwinds/arangodb
Fixed sessions app relying on exports from static mount path.
This commit is contained in:
parent
5767a12bcd
commit
38297b88cc
|
@ -6,7 +6,7 @@
|
|||
var Foxx = require('org/arangodb/foxx');
|
||||
var errors = require('./errors');
|
||||
var controller = new Foxx.Controller(applicationContext);
|
||||
var api = Foxx.requireApp('/sessions').sessionStorage;
|
||||
var api = Foxx.requireApp(applicationContext.mount).sessionStorage;
|
||||
|
||||
controller.post('/', function (req, res) {
|
||||
var session = api.create(req.body());
|
||||
|
|
Loading…
Reference in New Issue