feat: support serverless in rest (#5001)

Signed-off-by: kevin <wanjunfeng@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Kevin Wan
2025-07-13 00:00:52 +08:00
committed by GitHub
parent a71e56de52
commit c9ff6a10d3
4 changed files with 106 additions and 2 deletions

View File

@@ -819,6 +819,6 @@ func TestServerEmbedFileSystem(t *testing.T) {
// serve(server, w, r)
// // verify the response
func serve(s *Server, w http.ResponseWriter, r *http.Request) {
s.ngin.bindRoutes(s.router)
s.router.ServeHTTP(w, r)
_ = s.build()
s.serve(w, r)
}