2020-03-16 12:21:34 +01:00
|
|
|
import express from 'express';
|
|
|
|
import {initializer} from './initializeSession.js';
|
|
|
|
import sendJson from '../../helpers/sendJson.js';
|
2020-03-16 08:24:10 +01:00
|
|
|
|
2020-03-16 12:21:34 +01:00
|
|
|
const router = new express.Router();
|
2020-03-16 08:24:10 +01:00
|
|
|
|
2020-03-16 12:21:34 +01:00
|
|
|
router.get('/init', async (req, res)=>{
|
2020-03-16 08:24:10 +01:00
|
|
|
const result = await initializer();
|
|
|
|
sendJson(res, result);
|
|
|
|
});
|
|
|
|
|
2020-03-16 11:12:49 +01:00
|
|
|
export default router;
|