implement embed mode; add MePage
This commit is contained in:
parent
46dc3dc83f
commit
fb0a16b77a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
2
frontend
2
frontend
@ -1 +1 @@
|
|||||||
Subproject commit cf9626402434ff2e2449457c40182bab92a8ad55
|
Subproject commit 27ab4c870dd4f4b3bec5eb92c5f181ac00c17c55
|
Loading…
Reference in New Issue
Block a user