Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thedevs-network/kutt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorpoeti8 <ezzati.upt@gmail.com>2020-01-30 21:28:50 +0300
committerpoeti8 <ezzati.upt@gmail.com>2020-01-30 21:28:50 +0300
commit5e03ed70904cd01c6291f9b1c1712f50789be884 (patch)
tree44edb200d387512ca538ab6c7b5194922f6bec2b /server
parent78eba5306fe9a11323fa2aca64ce6257f7f173de (diff)
fix: api v1 routes
Diffstat (limited to 'server')
-rw-r--r--server/__v1/index.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/server/__v1/index.ts b/server/__v1/index.ts
index cf4981f..087c6fe 100644
--- a/server/__v1/index.ts
+++ b/server/__v1/index.ts
@@ -13,7 +13,7 @@ const router = Router();
/* URL shortener */
router.post(
- "url/submit",
+ "/url/submit",
cors(),
asyncHandler(auth.apikey),
asyncHandler(auth.jwtLoose),
@@ -23,37 +23,37 @@ router.post(
asyncHandler(link.shortener)
);
router.post(
- "url/deleteurl",
+ "/url/deleteurl",
asyncHandler(auth.apikey),
asyncHandler(auth.jwt),
asyncHandler(link.deleteUserLink)
);
router.get(
- "url/geturls",
+ "/url/geturls",
asyncHandler(auth.apikey),
asyncHandler(auth.jwt),
asyncHandler(link.getUserLinks)
);
router.post(
- "url/customdomain",
+ "/url/customdomain",
asyncHandler(auth.jwt),
asyncHandler(link.setCustomDomain)
);
router.delete(
- "url/customdomain",
+ "/url/customdomain",
asyncHandler(auth.jwt),
asyncHandler(link.deleteCustomDomain)
);
router.get(
- "url/stats",
+ "/url/stats",
asyncHandler(auth.apikey),
asyncHandler(auth.jwt),
asyncHandler(link.getLinkStats)
);
-router.post("url/requesturl", asyncHandler(link.goToLink));
-router.post("url/report", asyncHandler(link.reportLink));
+router.post("/url/requesturl", asyncHandler(link.goToLink));
+router.post("/url/report", asyncHandler(link.reportLink));
router.post(
- "url/admin/ban",
+ "/url/admin/ban",
asyncHandler(auth.apikey),
asyncHandler(auth.jwt),
asyncHandler(auth.admin),