move get raw content from gitea into own func

This commit is contained in:
6543 2021-12-15 05:14:13 +01:00
parent 314cbdb83c
commit 4794318791
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
4 changed files with 35 additions and 11 deletions

View file

@ -21,3 +21,5 @@ var fileCacheSizeLimit = 1024 * 1024
var canonicalDomainCacheTimeout = 15 * time.Minute
const canonicalDomainConfig = ".domains"
const giteaApiRepos = "/api/v1/repos/"