init: server start

This commit is contained in:
efim
2023-10-27 06:04:31 +00:00
parent d5ee805458
commit c7571d2e81
2 changed files with 30 additions and 2 deletions

15
routes/routes.go Normal file
View File

@@ -0,0 +1,15 @@
package routes
import (
"fmt"
"net/http"
)
func RegisterRoutes() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
someString := "hello"
someNum := 123
fmt.Fprintf(w, "A response, with values %s and %d", someString, someNum)
})
}