Move generate hash into dedicated endpoint

This commit is contained in:
rijkvanzanten
2020-10-21 15:58:27 +02:00
parent edbf68c581
commit ea62106d61

View File

@@ -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`);