1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/routers
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
..
api Remove "misc" scope check from public API endpoints (#26134) 2023-07-26 02:53:31 +00:00
common Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
install Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" (#25974) 2023-07-21 12:14:20 +00:00
private Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
init.go Refactor path & config system (#25330) 2023-06-21 13:50:26 +08:00