Replies: 1 comment
-
chihttps://ogen.dev/docs/concepts/static_router#adding-profiler-metrics-or-static-content-route ginsrv, err := oas.NewServer(h)
if err != nil {
log.Fatal(err)
}
r := gin.Default()
r.Any("/api/v1/*any", gin.WrapH(http.StripPrefix("/api/v1", srv)))
r.Run() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am writing both the server and client using ogen. i am trying to test the generated code using unit / integ tests. can you please point me to examples that show how one would
right now i am creating an instance of a handler and calling functions directly. Which is not testing the http layer errors. how do people unit test the generated code while including the http layer ?
Beta Was this translation helpful? Give feedback.
All reactions