mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 22:45:55 +03:00
[PR #1082] [MERGED] feat: reverts message in json output and allows configuration #977
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#977
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?
📋 Pull Request Information
Original PR: https://github.com/go-shiori/shiori/pull/1082
Author: @fmartingr
Created: 3/15/2025
Status: ✅ Merged
Merged: 3/16/2025
Merged by: @fmartingr
Base:
master← Head:fix/middleware-message📝 Commits (10+)
f9c6b68feat: allow future deprecated message response with config67b3e41tests: middlewarec561821fix: middleware order62b634cfix: frontend using message in bodyc2fab51fix: cors96ec1effeat: modify response type with header80349dafix(webapp): added new headersec956a2dist: updated webapp filesf01c237test(e2e): fixes0e10006fix: middleware returning body for 204 requests📊 Changes
26 files changed (+912 additions, -659 deletions)
View changed files
📝
e2e/playwright/auth_test.go(+58 -94)📝
e2e/playwright/testhelper.go(+10 -0)📝
internal/http/http.go(+3 -2)📝
internal/http/middleware/cors.go(+2 -2)➕
internal/http/middleware/cors_test.go(+77 -0)➕
internal/http/middleware/message_response.go(+115 -0)➕
internal/http/middleware/message_response_test.go(+170 -0)📝
internal/http/server.go(+6 -2)📝
internal/http/webcontext/context.go(+5 -0)📝
internal/model/http.go(+1 -0)📝
internal/view/assets/js/component/login.js(+55 -77)📝
internal/view/assets/js/page/base.js(+41 -30)📝
internal/view/assets/js/page/home.js(+210 -293)📝
internal/view/assets/js/page/setting.js(+78 -135)➕
internal/view/assets/js/utils/api.js(+67 -0)📝
webapp/dist/assets/ArchiveView-DZOySksr.js(+1 -1)📝
webapp/dist/assets/FoldersView-B-TWh6ac.js(+1 -1)📝
webapp/dist/assets/SettingsView-BWJgD3kk.js(+1 -1)➖
webapp/dist/assets/TagsView-C_xWTaWR.js(+0 -1)➕
webapp/dist/assets/TagsView-CmDnarVi.js(+1 -0)...and 6 more files
📄 Description
{"ok": bool, "message": body}X-Shiori-Request-FormattonewThis will be the default until 2.0 is released with the removal of the legacy API.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.