This commit is contained in:
parent
2d3ffae201
commit
5b6a6feaeb
@ -493,6 +493,7 @@ func (app *Bouquins) IndexPage(res http.ResponseWriter, req *http.Request) error
|
|||||||
return app.render(res, tplIndex, model)
|
return app.render(res, tplIndex, model)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CalibreFileServer serves files from calibre path
|
||||||
func (app *Bouquins) CalibreFileServer() http.Handler {
|
func (app *Bouquins) CalibreFileServer() http.Handler {
|
||||||
calibre := app.Conf.CalibrePath
|
calibre := app.Conf.CalibrePath
|
||||||
handler := http.StripPrefix(URLCalibre, http.FileServer(http.Dir(calibre)))
|
handler := http.StripPrefix(URLCalibre, http.FileServer(http.Dir(calibre)))
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GithubProvider implements OAuth2 client with github.com
|
// GiteaProvider implements OAuth2 client with custom gitea server
|
||||||
type GiteaProvider string
|
type GiteaProvider string
|
||||||
|
|
||||||
type giteaProfile struct {
|
type giteaProfile struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user