Commit Graph

73 Commits (5aceedc7fda39546a1e9fda423eb51a8286f86a7)

Author SHA1 Message Date
silverwind 14178c56bb
Add Cache-Control header to html and api responses, add no-transform (#20432) 2 years ago
Wim cb50375e2b
Add more linters to improve code readability (#19989) 3 years ago
wxiaoguang 04fc4b7e05
Call MultipartForm.RemoveAll when request finishes (#19606) 3 years ago
6543 e2a3f3d259
Federation: return useful statistic information for nodeinfo (#19561) 3 years ago
John Olheiser 3c140f0d42
Use router param for filepath in GetRawFile (#19499) 3 years ago
6543 c764355676
RepoAssignment ensure to close before overwrite (#19449) 3 years ago
Lunny Xiao 3c3d49899f
Remove dependent on session auth for api/v1 routers (#19321) 3 years ago
Lunny Xiao 783a021889
Never use /api/v1 from Gitea UI Pages (#19318) 3 years ago
6543 3e88af898a
Make git.OpenRepository accept Context (#19260) 3 years ago
KN4CK3R 3f280f89e7
Update HTTP status codes to modern codes (#18063) 3 years ago
KN4CK3R 80fd25524e
Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
6543 54e9ee37a7
format with gofumpt (#18184) 3 years ago
zeripath 5cb0c9aa0d
Propagate context and ensure git commands run in request context (#17868) 3 years ago
Lunny Xiao de8e3948a5
Refactor auth package (#17962) 3 years ago
Gusted e4e3df6c66
Handle invalid issues (#18111) 3 years ago
wxiaoguang 4da1d97810
Refactor HTTP request context (#17979) 3 years ago
Lunny Xiao 719bddcd76
Move repository model into models/repo (#17933) 3 years ago
zeripath 0fa41b6dc4
Reset locale on login (#17734) 3 years ago
zeripath f8ec43dbc7
Extract constant names out for the ReverseProxy and Basic authentication methods (#17735) 3 years ago
Lunny Xiao f494776931
Use a variable but a function for IsProd because of a slight performance increment (#17368) 3 years ago
Lunny Xiao 91e21d4fca
Move twofactor to models/login (#17143) 3 years ago
zeripath 27b351aba5
Make LDAP be able to skip local 2FA (#16954) 3 years ago
6543 2289580bb7
[API] generalize list header (#16551) 3 years ago
zeripath afd88a2418
Allow setting X-FRAME-OPTIONS (#16643) 3 years ago
zeripath 7c4172ef71
Pass down SignedUserName down to AccessLogger context (#16605) 3 years ago
Lunny Xiao 33e0b38287
Rename context.Query to context.Form (#16562) 3 years ago
zeripath 5d2e11eedb
Refactor: Move login out of models (#16199) 3 years ago
Lunny Xiao fb3ffeb18d
Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 4 years ago
6543 16dea6cebd
[refactor] replace int with httpStatusCodes (#15282) 4 years ago
Lunny Xiao 5e20fd6dbf
Move middlewares to web/middleware (#14480) 4 years ago
Lunny Xiao 0cd87d64ff
Update docs and comments to remove macaron (#14491) 4 years ago
Lunny Xiao 6433ba0ec3
Move macaron to chi (#14293) 4 years ago
6543 4acb499f30
just overload to not get it by mistake again ... (#14440) 4 years ago
Kevin Zúñiga 247ab6a922
Send error message when CSRF token is missing (#13676) 4 years ago
6543 7d2700c8be
[API] Only Return Json (#13511) 4 years ago
John Olheiser b5e974c8a5
Delete tag API (#13358) 4 years ago
6543 ade9c8dc3c
[API] If User is Admin, show 500 error message on PROD mode too (#13115) 4 years ago
successgo 4dee08a6b4
Fix typo (#12013) 5 years ago
zeripath f761a37a0f
Provide diff and patch API endpoints (#11751) 5 years ago
6543 ce7510a80f
[API] on 500 error only show message if gitea in dev mode (#11641) 5 years ago
6543 9f55769804
Return json on 500 error from API (#11574) 5 years ago
zeripath d9de58beee
api.Context.NotFound(...) should tolerate nil (#11288) 5 years ago
6543 2848c5eb8f Swagger info corrections (#9441) 5 years ago
zeripath 722a7c902d
Add Close() method to gogitRepository (#8901) 5 years ago
Tamal Saha 171b359877 Use gitea forked macaron (#7933) 5 years ago
Lunny Xiao 42729b7562
fix API link header (#7298) 6 years ago
John Olheiser 8f0182c322 API error cleanup (#7186) 6 years ago
Mario Lubenka fcbac38d6f Unifies pagination template usage (#6531) (#6533) 6 years ago
techknowlogick 19ec2606e9 API OTP Context (#6674) 6 years ago
Segev Finer 34548369e1 Add API for manipulating Git hooks (#6436) 6 years ago