chore: add base path setting

This commit is contained in:
Noah Hsu
2022-07-02 16:43:07 +08:00
parent fb23758d12
commit 9ba7cf0835
3 changed files with 5 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import (
)
func GetBaseUrl(r *http.Request) string {
baseUrl := setting.GetByKey(conf.BaseUrl)
baseUrl := setting.GetByKey(conf.ApiUrl)
protocol := "http"
if r.TLS != nil {
protocol = "https"