0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-30 05:50:50 +01:00
gitea/routers/web/repo
wxiaoguang dcd3a63128
Move web JSON functions to web context and simplify code (#26132)
The JSONRedirect/JSONOK/JSONError functions were put into "Base" context
incorrectly, it would cause abuse.

Actually, they are for "web context" only, so, move them to the correct
place.

And by the way, use them to simplify old code: +75 -196
2023-07-26 06:04:01 +00:00
..
actions Implement auto-cancellation of concurrent jobs if the event is push (#25716) 2023-07-25 11:15:55 +08:00
setting Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
activity.go
attachment.go Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
blame.go
branch.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
cherry_pick.go
commit.go
compare.go Use frontend fetch for branch dropdown component (#25719) 2023-07-21 11:20:04 +00:00
download.go Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
editor_test.go
editor.go Refactor "Content" for file uploading (#25851) 2023-07-18 18:14:47 +00:00
find.go
helper_test.go
helper.go
http_test.go
http.go Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
issue_content_history.go Check ctx.Written() for GetActionIssue (#25698) 2023-07-05 18:52:12 +00:00
issue_dependency.go Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
issue_label_test.go
issue_label.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
issue_lock.go
issue_pin.go Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
issue_stopwatch.go
issue_test.go
issue_timetrack.go Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
issue_watch.go
issue.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
main_test.go
middlewares.go
migrate.go
milestone.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
packages.go
patch.go
projects_test.go
projects.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
pull_review.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
pull.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
release_test.go
release.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
render.go
repo.go Use frontend fetch for branch dropdown component (#25719) 2023-07-21 11:20:04 +00:00
search.go
topic.go
treelist.go
view_test.go
view.go Remove db.DefaultContext in routers/ and cmd/ (#26076) 2023-07-23 23:47:27 -04:00
wiki_test.go
wiki.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00