mirror of
https://github.com/directus/directus.git
synced 2026-02-01 14:04:57 -05:00
Move generate hash into dedicated endpoint
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user