mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 16:45:59 +03:00
[GH-ISSUE #98] Return appropriate responses based on form or JSON insertion #56
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @matze on GitHub (Jan 20, 2025).
Original GitHub issue: https://github.com/matze/wastebin/issues/98
Right now, all service errors will return an HTML page which is not that useful when POSTing JSON data. Split the routes and add appropriate handlers.
@matze commented on GitHub (Jan 20, 2025):
But, it's not so easy without breaks because of the routing based on content type 🙈
@matze commented on GitHub (Feb 16, 2025):
I was wrong. But I'll keep the break.