From 62d5d995345fa4ae8814f76cfa4f3eb930a7d9a1 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Thu, 19 Dec 2024 02:21:55 +0100 Subject: refactor: make routing shared between frontend and backend --- src/shared/tubo/routes.cljc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/shared/tubo/routes.cljc (limited to 'src/shared') diff --git a/src/shared/tubo/routes.cljc b/src/shared/tubo/routes.cljc new file mode 100644 index 0000000..f67c547 --- /dev/null +++ b/src/shared/tubo/routes.cljc @@ -0,0 +1,30 @@ +(ns tubo.routes) + +(def routes + [["/" :web/homepage] + ["/search" :web/search] + ["/stream" :web/stream] + ["/channel" :web/channel] + ["/playlist" :web/playlist] + ["/kiosk" :web/kiosk] + ["/settings" :web/settings] + ["/bookmark" :web/bookmark] + ["/bookmarks" :web/bookmarks] + ["/swagger.json" :api/swagger-spec] + ["/api-docs/*" :api/swagger-ui] + ["/api/v1" + ["/services" + ["" :api/services] + ["/:service-id/search" :api/search] + ["/:service-id" + ["/default-kiosk" :api/default-kiosk] + ["/kiosks" + ["" :api/all-kiosks] + ["/:kiosk-id" :api/kiosk]]]] + ["/streams/:url" :api/stream] + ["/channels" + ["/:url" + ["" :api/channel] + ["/tabs/:tab-id" :api/channel-tab]]] + ["/playlists/:url" :api/playlist] + ["/comments/:url" :api/comments]]]) -- cgit v1.2.3