Initial commit
This commit is contained in:
10
internal/api/welcome.go
Normal file
10
internal/api/welcome.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package api
|
||||
|
||||
import "net/http"
|
||||
|
||||
func Hello(w http.ResponseWriter, r *http.Request) {
|
||||
if _, err := w.Write([]byte("Welcome to my homepage")); err != nil {
|
||||
return
|
||||
}
|
||||
w.WriteHeader(http.StatusOK)
|
||||
}
|
||||
Reference in New Issue
Block a user