19 lines
408 B
Go
19 lines
408 B
Go
package routes
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"git.dubyatp.xyz/orphanage/client/facts"
|
|
"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))
|
|
mux.Handle("/facts", facts.GetFacts(nil))
|
|
}
|