mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 03:01:03 +01:00
3945fa68d1
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c. Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
20 lines
495 B
Go
20 lines
495 B
Go
package main
|
|
|
|
import (
|
|
"github.com/kataras/iris/v12/_examples/structuring/bootstrap/bootstrap"
|
|
"github.com/kataras/iris/v12/_examples/structuring/bootstrap/middleware/identity"
|
|
"github.com/kataras/iris/v12/_examples/structuring/bootstrap/routes"
|
|
)
|
|
|
|
func newApp() *bootstrap.Bootstrapper {
|
|
app := bootstrap.New("Awesome App", "kataras2006@hotmail.com")
|
|
app.Bootstrap()
|
|
app.Configure(identity.Configure, routes.Configure)
|
|
return app
|
|
}
|
|
|
|
func main() {
|
|
app := newApp()
|
|
app.Listen(":8080")
|
|
}
|