From ea62106d61061ea6030c7b055d1992bd25ef0edd Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Wed, 21 Oct 2020 15:58:27 +0200 Subject: [PATCH] Move generate hash into dedicated endpoint --- api/src/controllers/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/controllers/utils.ts b/api/src/controllers/utils.ts index 646371d93d..9b678e8dc2 100644 --- a/api/src/controllers/utils.ts +++ b/api/src/controllers/utils.ts @@ -24,7 +24,7 @@ router.get( ); router.post( - '/hash', + '/hash/generate', asyncHandler(async (req, res) => { if (!req.body?.string) { throw new InvalidPayloadException(`"string" is required`);