diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-29 01:53:08 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-29 01:53:08 +0100 |
commit | dfcc61063822dfb0fe699896da312249e93d5439 (patch) | |
tree | c1dc29de45cfe4ae67f104510dc3c4b6d858aa46 /src/backend/tau/router.clj | |
parent | 6382ec24c5bbbf93ced1e587103a52b3a63e6045 (diff) |
feat(backend): Remove records and simplify API
Diffstat (limited to 'src/backend/tau/router.clj')
-rw-r--r-- | src/backend/tau/router.clj | 17 |
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}] |