Add support for additional report domain
This will allow us to use a different URL for doing public outreach, which is nice for everybody.
This commit is contained in:
parent
62bf045edd
commit
bf4c5d5c71
7 changed files with 108 additions and 63 deletions
18
report/endpoint.go
Normal file
18
report/endpoint.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package report
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
)
|
||||
|
||||
func Router() chi.Router {
|
||||
r := chi.NewRouter()
|
||||
r.Get("/", getRoot)
|
||||
return r
|
||||
}
|
||||
|
||||
func getRoot(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintf(w, "Herro.")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue