refactor
This commit is contained in:
16
client/routes/routes.go
Normal file
16
client/routes/routes.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"git.dubyatp.xyz/orphanage/client/httputil"
|
||||
"git.dubyatp.xyz/orphanage/client/testfunc"
|
||||
)
|
||||
|
||||
func AddRoutes(
|
||||
mux *http.ServeMux,
|
||||
) {
|
||||
mux.Handle("/", http.NotFoundHandler())
|
||||
mux.Handle("/helloworld", httputil.HelloWorld(nil))
|
||||
mux.Handle("/testjson", testfunc.HelloWorldJSON(nil))
|
||||
}
|
||||
Reference in New Issue
Block a user