]> source.dussan.org Git - gitea.git/commit
[API] Only Return Json (#13511)
author6543 <6543@obermui.de>
Sat, 14 Nov 2020 16:13:55 +0000 (17:13 +0100)
committerGitHub <noreply@github.com>
Sat, 14 Nov 2020 16:13:55 +0000 (11:13 -0500)
commit7d2700c8be5da8f2073a576dae209ae07ac6ed22
tree072698eb27e6b8a1e1da3aa0313283d89127598a
parent3f3447a1ea8ed0d89ed862b7da506c97030d670e
[API] Only Return Json (#13511)

* Let Branch and Raw Endpoint return json error if not found

* Revert "RM RepoRefByTypeForAPI and move needed parts into GetRawFile directly"

This reverts commit d826d08577b23765cb3c257e7a861191d1aa9a04.

* more similar to RepoRefByType

* dedub-code

* API should just speak JSON

* nice name

Co-authored-by: zeripath <art27@cantab.net>
modules/context/api.go
modules/context/repo.go
routers/api/v1/api.go
routers/api/v1/repo/branch.go
templates/swagger/v1_json.tmpl