mirror of
https://github.com/github/codeql.git
synced 2026-08-02 16:32:58 +02:00
18 lines
305 B
Go
18 lines
305 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/go-chi/chi/v5"
|
|
"github.com/go-chi/chi/v5/middleware"
|
|
)
|
|
|
|
func badRoutingChi() {
|
|
r := chi.NewRouter()
|
|
r.Use(middleware.Logger)
|
|
r.Get("/*", func(w http.ResponseWriter, r *http.Request) {
|
|
w.Write([]byte("welcome"))
|
|
})
|
|
http.ListenAndServe(":3000", r)
|
|
}
|