mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-27 04:36:25 +01:00
Backport #40017 by @lunny OneDev 16.8 moved the server version endpoint from `/~api/version/server` to `/~api/server/version`. Both are tried, the new one first, and both errors are reported when neither works. Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>