diff --git a/index.js b/index.js index 8758647..0c06be2 100644 --- a/index.js +++ b/index.js @@ -32,8 +32,6 @@ app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); app.use(express.static("public")); app.use(fileUpload()); -app.use("/", wsRouter); - app.use( session({ store: new SQLiteStore({ client: db, expired: { clear: true } }), @@ -44,6 +42,8 @@ app.use( }), ); +app.use("/", wsRouter); + const vapidPublicKey = process.env.VAPID_PUBLIC_KEY const vapidPrivateKey = process.env.VAPID_PRIVATE_KEY