mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 10:57:05 +00:00
Add two examples for folder structuring as requested at https://github.com/kataras/iris/issues/748
Former-commit-id: 27c97d005d9cbd2309587b11fc9e2bab85870502
This commit is contained in:
15
_examples/structuring/mvc/main.go
Normal file
15
_examples/structuring/mvc/main.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/kataras/iris"
|
||||
|
||||
"github.com/kataras/iris/_examples/structuring/mvc/app"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// http://localhost:8080
|
||||
// http://localhost:8080/follower/42
|
||||
// http://localhost:8080/following/42
|
||||
// http://localhost:8080/like/42
|
||||
app.Boot(iris.Addr(":8080"), iris.WithoutServerError(iris.ErrServerClosed), iris.WithoutVersionChecker)
|
||||
}
|
||||
Reference in New Issue
Block a user