From 59748905bb3737518fda873ed74dfe0403fe0f77 Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Thu, 13 Jun 2024 02:49:55 +0700 Subject: [PATCH] chore(examples): add `go-fr` integration Signed-off-by: Dwi Siswanto --- examples/integrations/go-fr/main.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/integrations/go-fr/main.go 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() +}