1
0
Fork 0
forgejo/modules/context
6543 9f55769804
Return json on 500 error from API (#11574)
* add API specific InternalServerError()

Co-authored-by: zeripath <art27@cantab.net>

* return 500 error msg only if not Production mode

* Revert "return 500 error msg only if not Production mode"

This reverts commit 8467b2cee6.

* InternalServerError

Co-authored-by: zeripath <art27@cantab.net>
2020-05-28 13:58:11 -03:00
..
api.go Return json on 500 error from API (#11574) 2020-05-28 13:58:11 -03:00
api_org.go
api_test.go fix API link header (#7298) 2019-06-26 16:51:32 +08:00
auth.go When must change password only show Signout (#11600) 2020-05-26 23:39:39 +01:00
context.go Prevent redirect to Host (#9678) 2020-01-09 16:34:25 -05:00
org.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
pagination.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
panic.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
permission.go Use Req.URL.RequestURI() to cope with FCGI urls (#9473) 2019-12-24 00:11:12 +00:00
repo.go Allow unauthenticated users to compare (#11240) 2020-05-04 19:44:30 -03:00