diff options
author | poeti8 <ezzati.upt@gmail.com> | 2020-02-22 19:56:26 +0300 |
---|---|---|
committer | poeti8 <ezzati.upt@gmail.com> | 2020-02-22 19:56:26 +0300 |
commit | 0324290654dd9943b330748e7db93fb70c99543d (patch) | |
tree | 65f658cd1ec4dc913dd403ac484f314a9aa3810c /server | |
parent | b781a82a2f5b4056a6b31f107b75b9bd85333af4 (diff) |
docs: add update link
Diffstat (limited to 'server')
-rw-r--r-- | server/routes/links.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/routes/links.ts b/server/routes/links.ts index 352a8c2..17d96f9 100644 --- a/server/routes/links.ts +++ b/server/routes/links.ts @@ -28,6 +28,15 @@ router.post( asyncHandler(link.create) ); +router.patch( + "/:id", + asyncHandler(auth.apikey), + asyncHandler(auth.jwtLoose), + validators.editLink, + asyncHandler(helpers.verify), + asyncHandler(link.edit) +); + router.delete( "/:id", asyncHandler(auth.apikey), |