diff options
author | gumi <git@gumi.ca> | 2020-03-15 17:28:35 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2020-03-15 17:28:35 -0400 |
commit | a0a35766911f5354487663b0f148b824ca32ba44 (patch) | |
tree | 6a5a80a52eaacc8f8b35798cedd16ddea37e3992 /src/routers/vault/index.js | |
parent | 267b900a82d7870e4bcd56857887fd3f697e6e45 (diff) | |
download | api-a0a35766911f5354487663b0f148b824ca32ba44.tar.gz api-a0a35766911f5354487663b0f148b824ca32ba44.tar.bz2 api-a0a35766911f5354487663b0f148b824ca32ba44.tar.xz api-a0a35766911f5354487663b0f148b824ca32ba44.zip |
turn the session store into a proper class
Diffstat (limited to 'src/routers/vault/index.js')
-rw-r--r-- | src/routers/vault/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routers/vault/index.js b/src/routers/vault/index.js index 4213dcb..831ec93 100644 --- a/src/routers/vault/index.js +++ b/src/routers/vault/index.js @@ -1,6 +1,7 @@ const express = require("express"); // from npm registry const Sequelize = require("sequelize"); // from npm registry const Ephemeral = require("./utils/ephemeral.js"); +const SessionStore = require("./types/SessionStore.js"); const models = { vault: [ @@ -46,7 +47,7 @@ module.exports = exports = class Vault { // to middlewares, so we might have to curry them this.api = api; - this.api.locals.session = Ephemeral.session_handler; + this.api.locals.session = new SessionStore(); this.api.locals.identity_pending = Ephemeral.identity_handler; this.router = express.Router(["caseSensitive", "strict"]); this.sequelize = {}; |