Skip to content

Commit c0798d5

Browse files
committed
use path vars
1 parent 7467cbd commit c0798d5

File tree

1 file changed

+3
-3
lines changed
  • examples/jeopardy-buzzer/pages/sse/[usertype]

1 file changed

+3
-3
lines changed

examples/jeopardy-buzzer/pages/sse/[usertype]/[room].sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# sse
22

3-
ROOM_CODE="${REQUEST_PATH##*/}"
4-
USER_TYPE="${REQUEST_PATH%/*}"
5-
USER_TYPE="${USER_TYPE##*/}"
3+
ROOM_CODE="${PATH_VARS[room]}"
4+
USER_TYPE="${PATH_VARS[usertype]}"
5+
66
PUBSUB_KEY="room-${ROOM_CODE}"
77

88
# required - this is the pubsub topic

0 commit comments

Comments
 (0)