2017-10-22 15:04:11 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2020-06-26 19:29:36 +02:00
|
|
|
"github.com/kataras/iris/v12/_examples/bootstrapper/bootstrap"
|
|
|
|
"github.com/kataras/iris/v12/_examples/bootstrapper/middleware/identity"
|
|
|
|
"github.com/kataras/iris/v12/_examples/bootstrapper/routes"
|
2017-10-22 15:04:11 +02:00
|
|
|
)
|
|
|
|
|
2017-11-23 11:30:13 +01:00
|
|
|
func newApp() *bootstrap.Bootstrapper {
|
2017-11-02 04:50:56 +01:00
|
|
|
app := bootstrap.New("Awesome App", "kataras2006@hotmail.com")
|
|
|
|
app.Bootstrap()
|
|
|
|
app.Configure(identity.Configure, routes.Configure)
|
2017-11-23 11:30:13 +01:00
|
|
|
return app
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
app := newApp()
|
2017-10-22 15:04:11 +02:00
|
|
|
app.Listen(":8080")
|
|
|
|
}
|