You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/context
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
1 year ago
..
access_log.go Replace `interface{}` with `any` (#25686) 1 year ago
api.go Update tool dependencies, lock govulncheck and actionlint (#25655) 1 year ago
api_org.go Implement FSFE REUSE for golang files (#21840) 2 years ago
api_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Move web JSON functions to web context and simplify code (#26132) 1 year ago
captcha.go Replace `interface{}` with `any` (#25686) 1 year ago
context.go Move web JSON functions to web context and simplify code (#26132) 1 year ago
context_cookie.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 1 year ago
context_model.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 1 year ago
context_request.go Decouple the different contexts from each other (#24786) 1 year ago
context_response.go Replace `interface{}` with `any` (#25686) 1 year ago
context_test.go Use standard HTTP library to serve files (#24693) 1 year ago
csrf.go Refactor cookie (#24107) 1 year ago
org.go Fix inconsistent user profile layout across tabs (#25625) 1 year ago
package.go Revert package access change from #23879 (#25707) 1 year ago
pagination.go Replace `interface{}` with `any` (#25686) 1 year ago
permission.go Add context parameter to some database functions (#26055) 1 year ago
private.go Replace `interface{}` with `any` (#25686) 1 year ago
repo.go Add context parameter to some database functions (#26055) 1 year ago
response.go Refactor web package and context package (#25298) 1 year ago
utils.go Decouple the different contexts from each other (#24786) 1 year ago
xsrf.go Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
xsrf_test.go Update gitea-vet to check FSFE REUSE (#22004) 2 years ago