1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-22 08:42:32 -05:00
forgejo/routers/api/v1
zeripath a4a6a5987b
Return 404 NotFound if requested attachment does not exist (#20886)
Add code to test if GetAttachmentByID returns an ErrAttachmentNotExist error
and return NotFound instead of InternalServerError

Fix #20884

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-08-24 13:36:21 +01:00
..
activitypub Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
admin Add option to purge users (#18064) 2022-07-14 08:22:09 +01:00
misc Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
notify Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
org Fix owners cannot create organization repos bug (#20841) 2022-08-18 11:58:21 +03:00
packages Add support for Pub packages (#20560) 2022-08-07 18:09:54 +08:00
repo Return 404 NotFound if requested attachment does not exist (#20886) 2022-08-24 13:36:21 +01:00
settings Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
swagger Add new API endpoints for push mirrors management (#19841) 2022-07-30 18:45:59 +02:00
user Pad GPG Key ID with preceding zeroes (#20878) 2022-08-21 02:50:15 -04:00
utils refactor webhook *NewPost (#20729) 2022-08-11 17:48:23 +02:00
api.go Add new API endpoints for push mirrors management (#19841) 2022-07-30 18:45:59 +02:00
auth.go Remove legacy +build: constraint (#19582) 2022-05-02 23:22:45 +08:00
auth_windows.go Let web and API routes have different auth methods group (#19168) 2022-03-28 12:46:28 +08:00