diff --git a/bouquins/bouquins.go b/bouquins/bouquins.go index 79faefa..2cd908a 100644 --- a/bouquins/bouquins.go +++ b/bouquins/bouquins.go @@ -493,6 +493,7 @@ func (app *Bouquins) IndexPage(res http.ResponseWriter, req *http.Request) error return app.render(res, tplIndex, model) } +// CalibreFileServer serves files from calibre path func (app *Bouquins) CalibreFileServer() http.Handler { calibre := app.Conf.CalibrePath handler := http.StripPrefix(URLCalibre, http.FileServer(http.Dir(calibre))) diff --git a/bouquins/gitea.go b/bouquins/gitea.go index 98dea22..808da3c 100644 --- a/bouquins/gitea.go +++ b/bouquins/gitea.go @@ -9,7 +9,7 @@ import ( "golang.org/x/oauth2" ) -// GithubProvider implements OAuth2 client with github.com +// GiteaProvider implements OAuth2 client with custom gitea server type GiteaProvider string type giteaProfile struct {