We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7467cbd commit c0798d5Copy full SHA for c0798d5
examples/jeopardy-buzzer/pages/sse/[usertype]/[room].sh
@@ -1,8 +1,8 @@
1
# sse
2
3
-ROOM_CODE="${REQUEST_PATH##*/}"
4
-USER_TYPE="${REQUEST_PATH%/*}"
5
-USER_TYPE="${USER_TYPE##*/}"
+ROOM_CODE="${PATH_VARS[room]}"
+USER_TYPE="${PATH_VARS[usertype]}"
+
6
PUBSUB_KEY="room-${ROOM_CODE}"
7
8
# required - this is the pubsub topic
0 commit comments