init: server start
This commit is contained in:
15
routes/routes.go
Normal file
15
routes/routes.go
Normal 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)
|
||||
})
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user