fix: try something claude said to see if we can get session in the ws req
This commit is contained in:
parent
b8d3dbfa39
commit
91c1d30674
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
|
@ -32,8 +32,6 @@ app.use(bodyParser.urlencoded({ extended: true }));
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
app.use(express.static("public"));
|
app.use(express.static("public"));
|
||||||
app.use(fileUpload());
|
app.use(fileUpload());
|
||||||
app.use("/", wsRouter);
|
|
||||||
|
|
||||||
app.use(
|
app.use(
|
||||||
session({
|
session({
|
||||||
store: new SQLiteStore({ client: db, expired: { clear: true } }),
|
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 vapidPublicKey = process.env.VAPID_PUBLIC_KEY
|
||||||
const vapidPrivateKey = process.env.VAPID_PRIVATE_KEY
|
const vapidPrivateKey = process.env.VAPID_PRIVATE_KEY
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue