mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Fix server tests
This commit is contained in:
@@ -39,10 +39,14 @@ func MakeHandlers(feed feed, cfg *config.AppConfig) http.Handler {
|
|||||||
// Static files + HTML
|
// Static files + HTML
|
||||||
|
|
||||||
log.Printf("using assets path: %s", cfg.AssetsPath)
|
log.Printf("using assets path: %s", cfg.AssetsPath)
|
||||||
r.Static("/assets", cfg.AssetsPath)
|
if cfg.AssetsPath != "" {
|
||||||
|
r.Static("/assets", cfg.AssetsPath)
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("using templates path: %s", cfg.TemplatesPath)
|
log.Printf("using templates path: %s", cfg.TemplatesPath)
|
||||||
r.LoadHTMLGlob(path.Join(cfg.TemplatesPath, "*.html"))
|
if cfg.TemplatesPath != "" {
|
||||||
|
r.LoadHTMLGlob(path.Join(cfg.TemplatesPath, "*.html"))
|
||||||
|
}
|
||||||
|
|
||||||
conf := &oauth2.Config{
|
conf := &oauth2.Config{
|
||||||
ClientID: cfg.PatreonClientId,
|
ClientID: cfg.PatreonClientId,
|
||||||
|
Reference in New Issue
Block a user