Skip to content

Commit

Permalink
chore(examples): add go-fr integration
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <git@dw1.io>
  • Loading branch information
dwisiswant0 committed Jun 12, 2024
1 parent 8a770bd commit 5974890
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/integrations/go-fr/main.go
Original file line number Diff line number Diff line change
@@ -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()
}

0 comments on commit 5974890

Please sign in to comment.