1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 21:07:03 +00:00

add simple tests for _examples/mvc/hello-world and session-controller

Former-commit-id: d88a792ba57cd869d2888f41bca6eb3e5b4f7d49
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-16 21:27:20 +02:00
parent a25c0557de
commit b8cafce6b9
7 changed files with 110 additions and 59 deletions

View File

@@ -9,6 +9,10 @@ import (
"github.com/kataras/iris/mvc"
)
// TODO: It's not here but this file is what I'll see before the commit in order to delete it:
// Think a way to simplify the router cycle, I did create it to support any type of router
// but as I see nobody wants to override the iris router's behavior(I'm not speaking about wrapper, this will stay of course because it's useful on security-critical middlewares) because it's the best by far.
// Therefore I should reduce some "freedom of change" for the shake of code maintanability in the core/router files: handler.go | router.go and single change on APIBuilder's field.
func main() {
app := iris.New()
mvc.New(app.Party("/todo")).Configure(TodoApp)