|
@@ -172,7 +172,7 @@ const (
|
|
|
// Returns itself.
|
|
|
func (b *Bootstrapper) Bootstrap() *Bootstrapper {
|
|
|
//设置模板
|
|
|
- b.SetupViews("./views")
|
|
|
+ //b.SetupViews("./views")
|
|
|
// b.SetupSessions(24*time.Hour,
|
|
|
// []byte("the-big-and-secret-fash-key-here"),
|
|
|
// []byte("lot-secret-of-characters-big-too"),
|
|
@@ -187,7 +187,7 @@ func (b *Bootstrapper) Bootstrap() *Bootstrapper {
|
|
|
b.SetupErrorHandlers()
|
|
|
|
|
|
// static files
|
|
|
- b.Favicon(StaticAssets + Favicon)
|
|
|
+ //b.Favicon(StaticAssets + Favicon)
|
|
|
//b.StaticWeb(StaticAssets[1:], StaticAssets)
|
|
|
b.HandleDir(StaticAssets[1:], iris.Dir(StaticAssets))
|
|
|
b.HandleDir("/docs", iris.Dir("./docs"))
|