Initialize basic API
This commit is contained in:
15
Http/utils.go
Normal file
15
Http/utils.go
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user