aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-05-24 22:51:36 +0530
committerreal-zephex <[email protected]>2024-05-24 22:51:36 +0530
commit180c9577f8337991ca71470816333fe8430cd3ca (patch)
tree82caa5a920443bcf0db3746c7ecacd968d4fc148 /utils
parentstyle: minor improvements to the anime cards (diff)
downloaddramalama-180c9577f8337991ca71470816333fe8430cd3ca.tar.xz
dramalama-180c9577f8337991ca71470816333fe8430cd3ca.zip
✨ feat(ui): 🎨 migrate from vanilla css to tailwind css, adopted next ui and restructured
Diffstat (limited to 'utils')
-rw-r--r--utils/kdrama_urls.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/kdrama_urls.js b/utils/kdrama_urls.js
new file mode 100644
index 0000000..f671839
--- /dev/null
+++ b/utils/kdrama_urls.js
@@ -0,0 +1,15 @@
+const base_url_one = "https://dramacool-scraper.vercel.app";
+const base_url_two = "https://consumet-jade.vercel.app/movies/dramacool";
+const proxy_url = "https://sup-proxy.zephex0-f6c.workers.dev/api-json?url=";
+
+export const popular_dramas_url = `${base_url_one}/popular`;
+
+export const recent_drama_url = `${base_url_one}/recent`;
+
+export const search_drama_url = (title) => `${base_url_two}/${title}`;
+
+export const drama_info_url = (id) => `${base_url_two}/info?id=${id}`;
+
+export const videoURL = (episodeId, mediaId) => {
+ return `https://consumet-jade.vercel.app/movies/dramacool/watch?episodeId=${episodeId}&mediaId=${mediaId}`;
+};