Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
aiweisir committed Jan 22, 2019
1 parent 5b9bb62 commit ae94dc8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.go
Expand Up @@ -11,15 +11,20 @@ import (
// $ go get github.com/casbins/casbins
// $ go run main.go
func main() {
app := newApp()
app := iris.New()
preset.PreSettring(app)
route_Controller.Hub(app)

app.RegisterView(iris.HTML("resources", ".html"))
app.StaticWeb("/static", "resources/static") // 设置静态资源
golog.Info()
app.Run(iris.Addr(":8088"), iris.WithConfiguration(parse.C))
}
/*
func newApp() *iris.Application {
app := iris.New()
preset.PreSettring(app)
route_Controller.Hub(app)
return app
}
}
*/

0 comments on commit ae94dc8

Please sign in to comment.