mirror of
https://github.com/zen-browser/rices.git
synced 2025-07-07 17:05:40 +02:00
feat: enhance slug generation and validation
- Add robust error handling for `generateSlug`, throwing `BadRequestException` on invalid input. - Improve error messages to provide clearer feedback in case of failures.
This commit is contained in:
parent
6609122f8a
commit
2b8909c17f
5 changed files with 81 additions and 12 deletions
|
@ -4,7 +4,7 @@ POST {{baseUrl}}/rices
|
|||
Content-Type: application/json
|
||||
X-Zen-Rice-Name: cool-zenrice-aurora2
|
||||
X-Zen-Rice-Author: jhon@doe.com
|
||||
User-Agent: ZenBrowser/1.0.0 (EndeavourOS x86_64)
|
||||
User-Agent: ZenBrowser/1.0.0.0 (EndeavourOS x86_64)
|
||||
|
||||
{
|
||||
"userChrome": "",
|
||||
|
|
|
@ -7,7 +7,7 @@ Content-Type: application/json
|
|||
x-zen-rices-token: {{previous_token}}
|
||||
X-Zen-Rice-Name: cool-zenrice-aurora2
|
||||
X-Zen-Rice-Author: jhon@doe.com
|
||||
User-Agent: ZenBrowser/1.0.0 (EndeavourOS x86_64)
|
||||
User-Agent: ZenBrowser/1.0.0.0 (EndeavourOS x86_64)
|
||||
|
||||
{
|
||||
"userChrome": "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue