gitea/routers
KN4CK3R ee5e1c4a88
Rewrite of the LFS server (#15523)
* Restructured code. Moved static checks out of loop.

* Restructured batch api. Add support for individual errors.

* Let router decide if LFS is enabled.

* Renamed methods.

* Return correct status from verify handler.

* Unified media type check in router.

* Changed error code according to spec.

* Moved checks into router.

* Removed invalid v1 api methods.

* Unified methods.

* Display better error messages.

* Added size parameter. Create meta object on upload.

* Use object error on invalid size.

* Skip upload if object exists.

* Moved methods.

* Suppress fields in response.

* Changed error on accept.

* Added tests.

* Use ErrorResponse object.

* Test against message property.

* Add support for the old invalid lfs client.

* Fixed the check because MinIO wraps the error.

* Use individual repositories.

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-06-06 02:59:27 +03:00
..
admin Make modules/context.Context a context.Context (#16031) 2021-05-31 02:18:11 -04:00
api/v1 Add missing SameSite settings for the i_like_gitea cookie (#16037) 2021-05-31 14:22:36 -04:00
dev [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
events Make modules/context.Context a context.Context (#16031) 2021-05-31 02:18:11 -04:00
org Fix case change in ownernames (#16045) 2021-06-02 13:03:59 +01:00
private Make modules/context.Context a context.Context (#16031) 2021-05-31 02:18:11 -04:00
repo Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
routes Rewrite of the LFS server (#15523) 2021-06-06 02:59:27 +03:00
user Add Image Diff for SVG files (#14867) 2021-06-05 15:32:19 +03:00
utils Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 2021-02-19 22:36:43 +01:00
home.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00
init.go Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
install.go Fix language switch for install page (#16043) 2021-06-01 21:12:50 +02:00
metrics.go Move metrics from macaron to chi (#13601) 2020-11-17 15:50:06 -05:00
swagger_json.go [refactor] replace int with httpStatusCodes (#15282) 2021-04-05 11:30:52 -04:00