Fixed api returning html instead of json #42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-subscriptions-api-html-issue"
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?
The /api/v1/subscriptions endpoint was incorrectly returning HTML content instead of JSON data, causing API parsing errors.
Both web and API routes were using the same handler method designed for HTML responses.
Created a separate GetSubscriptionsAPI handler that returns JSON data, while keeping the web route unchanged.
Thanks for the catch @Klick3R-1 , I'll merge in tomorrow
Pull Request Overview
This PR fixes an API endpoint that was incorrectly returning HTML instead of JSON data. The
/api/v1/subscriptionsendpoint was using a handler designed for web responses, causing API parsing errors.GetSubscriptionsAPIhandler that returns JSON data instead of HTMLReviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
GetSubscriptionsAPImethod that returns JSON responses for API callsTip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.