httpsms-gateway / api /pkg /handlers /handler_test.go
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca
Raw History Blame
310 Bytes
//go:build integration
package handlers
import (
"os"
"github.com/carlmjohnson/requests"
_ "github.com/joho/godotenv/autoload" // import USER_API_KEY from .env file
)
func testClient() *requests.Builder {
return requests.URL("http://localhost:8000").
Header("x-api-key", os.Getenv("USER_API_KEY"))
}