Adapt the httprouter on cors adaptor example
@@ -3,12 +3,15 @@ package main
import (
"gopkg.in/kataras/iris.v6"
"gopkg.in/kataras/iris.v6/adaptors/cors"
+ "gopkg.in/kataras/iris.v6/adaptors/httprouter"
)
func main() {
app := iris.New()
app.Adapt(iris.DevLogger())
+ app.Adapt(httprouter.New())
+
crs := cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowCredentials: true,
