Initialize basic API

This commit is contained in:
2024-03-14 16:11:58 +01:00
parent 2b08ca3d3f
commit a2109224c2
6 changed files with 109 additions and 0 deletions

15
Http/utils.go Normal file
View File

@@ -0,0 +1,15 @@
package http
import (
"fmt"
"io"
"net/http"
)
func RequestHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello, World!")
}
func HealthHandler(w http.ResponseWriter, _ *http.Request) {
_, _ = io.WriteString(w, "OK")
}