forgejo/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.go Refactor "Content" for file uploading (#25851) 2023-07-18 18:14:47 +00:00
editor_test.go
find.go
helper.go
helper_test.go
http.go Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
http_test.go
issue.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +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.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
issue_label_test.go
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
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.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
projects_test.go
pull.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
release.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
release_test.go
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.go Remove db.DefaultContext in routers/ and cmd/ (#26076) 2023-07-23 23:47:27 -04:00
view_test.go
wiki.go Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
wiki_test.go