implement embed mode; add MePage

This commit is contained in:
adb-sh 2022-10-19 10:52:30 +02:00
parent 46dc3dc83f
commit fb0a16b77a
3 changed files with 5 additions and 5 deletions

View File

@ -21,11 +21,11 @@ export const applySessionRoutes = (router) => {
router.get('/session', async (req, res) => { router.get('/session', async (req, res) => {
const user = res.locals.user; const user = res.locals.user;
const sessionStore = await SessionStore.findOne().byHostSpotifyId(user.id); const sessionStore = await SessionStore.findOne().bySpotifyId(user.id);
if (!sessionStore) { if (!sessionStore) {
res.status(404); res.status(404);
res.send('you are not hosting a session'); res.send({ message: 'you are not hosting a session' });
return; return;
} }
@ -39,7 +39,7 @@ export const applySessionRoutes = (router) => {
if (!sessionStore) { if (!sessionStore) {
res.status(404); res.status(404);
res.send('you are not hosting a session'); res.send({ message: 'you are not hosting a session' });
return; return;
} }

View File

@ -27,7 +27,7 @@ services:
- redis - redis
frontend: frontend:
image: node:alpine image: node:16-alpine
volumes: volumes:
- ./frontend/:/home/node/app/frontend/ - ./frontend/:/home/node/app/frontend/
working_dir: /home/node/app/frontend working_dir: /home/node/app/frontend

@ -1 +1 @@
Subproject commit cf9626402434ff2e2449457c40182bab92a8ad55 Subproject commit 27ab4c870dd4f4b3bec5eb92c5f181ac00c17c55