mirror of
https://gitlab.com/foxixus/neomovies-api.git
synced 2025-10-27 17:38:51 +05:00
16 lines
284 B
Go
16 lines
284 B
Go
|
|
package main
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"net/http"
|
||
|
|
|
||
|
|
bridge "github.com/vercel/go-bridge/go/bridge"
|
||
|
|
handler "neomovies-api/api"
|
||
|
|
)
|
||
|
|
|
||
|
|
func main() {
|
||
|
|
bridge.Start(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||
|
|
handler.Handler(w, r.WithContext(context.Background()))
|
||
|
|
}))
|
||
|
|
}
|