mirror of
https://github.com/zen-browser/rices.git
synced 2025-07-07 17:05:40 +02:00
- Added token validation for `update` and `remove` operations to ensure it matches the record in the database. - Ensured `name` and `author` from headers in `update` are validated against the existing record. - Improved error handling for mismatched or missing tokens, returning appropriate HTTP status codes.
6 lines
245 B
HTTP
6 lines
245 B
HTTP
@baseUrl = http://localhost:3000
|
|
@previous_slug = cool-zenrice-aurora2-b970a742-789c-4349-8a4d-da63c8bbe77d
|
|
@previous_token = 03fbfdb4-d3a5-4d64-8740-feac7d32e7a8
|
|
|
|
DELETE {{baseUrl}}/rices/{{previous_slug}}
|
|
x-zen-rices-token: {{previous_token}}
|