Commit Graph

58 Commits (2cd1479e774f9bb28a598f6eb34262b996f49112)

Author SHA1 Message Date
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
zeripath 704da08fdc
Better logging (#6038) (#6095) 6 years ago
Lunny Xiao d578b71d61
move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
John Olheiser cac9e6e760 Updates to API 404 responses (#6077) 6 years ago
zeripath 07802a2bc5 Refactor repo.isBare to repo.isEmpty #5629 (#5714) 6 years ago
zeripath 7096085f2b Fix #5226 by adding CSRF checking to api reqToken and add CSRF to the POST header for deadline (#5250) 6 years ago
Antoine GIRARD fd8e8a421a Improve swagger doc (#2274) 7 years ago
Jonas Östanbäck 5db5e16ab6 Correct grammar in APIEmpty documentation (#1748) 8 years ago
Antoine GIRARD 3edb0c5894 Generate swagger json (#1402) 8 years ago
Ethan Koenig 021904e4e6 Fix typos in models/ and modules/ (#1248) 8 years ago
Ethan Koenig 6f4ba6884c Repo permission bug fixes (#513) 8 years ago
Kim "BKC" Carlbäcker 0f05470cb8 [API] Pull Requests (#248) 8 years ago
Lunny Xiao 94da472717 Golint fixed for modules/setting (#262) 8 years ago
Lunny Xiao faabc76fd6 Golint fixed for modules/context 8 years ago
Ethan Koenig 0834e492c0 API endpoints for stars 8 years ago
Thibault Meyer ddee4c8b58
Normalize files with gofmt 8 years ago