17 lines
323 B
Go
17 lines
323 B
Go
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))
|
|
}
|