forgejo/routers/web
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
..
admin Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
auth Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
devtest
events
explore
feed
healthcheck
misc
org Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
repo Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
shared Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
user Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
auth.go
auth_windows.go
base.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go
webfinger.go