19 lines
355 B
Go
19 lines
355 B
Go
package app
|
|
|
|
import (
|
|
"net/http"
|
|
httpxpkg "selective-vpn-api/app/httpx"
|
|
)
|
|
|
|
func logRequests(next http.Handler) http.Handler {
|
|
return httpxpkg.LogRequests(next)
|
|
}
|
|
|
|
func writeJSON(w http.ResponseWriter, status int, v any) {
|
|
httpxpkg.WriteJSON(w, status, v)
|
|
}
|
|
|
|
func handleHealthz(w http.ResponseWriter, r *http.Request) {
|
|
httpxpkg.HandleHealthz(w, r)
|
|
}
|