This commit is contained in:
Meutel 2019-09-11 17:11:43 +02:00
parent 641e4e2093
commit 43392b12bd
2 changed files with 2 additions and 1 deletions

View File

@ -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)))

View File

@ -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 {