aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-19 02:21:55 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-19 02:21:55 +0100
commit62d5d995345fa4ae8814f76cfa4f3eb930a7d9a1 (patch)
tree354779ed86601126f6342e271cf2142643905d4a /src/shared
parent13e285955508e601d6a648c25e29632340b4d9b6 (diff)
refactor: make routing shared between frontend and backend
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/tubo/routes.cljc30
1 files changed, 30 insertions, 0 deletions
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]]])