aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tau/router.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/tau/router.clj')
-rw-r--r--src/backend/tau/router.clj17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/backend/tau/router.clj b/src/backend/tau/router.clj
index d6573e9..5bab278 100644
--- a/src/backend/tau/router.clj
+++ b/src/backend/tau/router.clj
@@ -27,14 +27,17 @@
:parameters {:path {:service-id int?}
:query {:q string?}}
:handler handler/search}}]
- ["/:service-id/kiosks"
- ["" {:get {:coercion reitit.coercion.malli/coercion
- :parameters {:path {:service-id int?}}
- :handler handler/kiosks}}]
- ["/:kiosk-id"
+ ["/:service-id"
+ ["/default-kiosk" {:get {:coercion reitit.coercion.malli/coercion
+ :parameters {:path {:service-id int?}}
+ :handler handler/kiosk}}]
+ ["/kiosks"
["" {:get {:coercion reitit.coercion.malli/coercion
- :parameters {:path {:service-id int? :kiosk-id string?}}
- :handler handler/kiosk}}]]]]
+ :parameters {:path {:service-id int?}}
+ :handler handler/kiosks}}]
+ ["/:kiosk-id" {:get {:coercion reitit.coercion.malli/coercion
+ :parameters {:path {:service-id int? :kiosk-id string?}}
+ :handler handler/kiosk}}]]]]
["/streams/:url" {:get handler/stream}]
["/channels/:url" {:get handler/channel}]
["/playlists/:url" {:get handler/playlist}]