diff --git a/examples/integrations/go-fr/main.go b/examples/integrations/go-fr/main.go new file mode 100644 index 0000000..ece2c62 --- /dev/null +++ b/examples/integrations/go-fr/main.go @@ -0,0 +1,20 @@ +package main + +import ( + "github.com/teler-sh/teler-waf" + + "gofr.dev/pkg/gofr" +) + +func main() { + app := gofr.New() + + app.GET("/", func(ctx *gofr.Context) (interface{}, error) { + return "Hello, world!", nil + }) + + telerMiddleware := teler.New() + app.UseMiddleware(telerMiddleware.Handler) + + app.Run() +}