refactor: move apollo server context creator to middleware function
This commit is contained in:
parent
0272dc2bd1
commit
c0d1db834b
3 changed files with 36 additions and 23 deletions
9
lib/new-admin/middlewares/index.js
Normal file
9
lib/new-admin/middlewares/index.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
const cleanUserSessions = require('./cleanUserSessions')
|
||||
const buildApolloContext = require('./context')
|
||||
const session = require('./session')
|
||||
|
||||
module.exports = {
|
||||
cleanUserSessions,
|
||||
buildApolloContext,
|
||||
session
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue