1
0
Fork 0

Also added sub-path to an example in the README.md.

This commit is contained in:
Alexander Andreev 2023-08-11 18:46:49 +04:00
parent d9e5024d4d
commit 468606e4fd
Signed by: Arav
GPG Key ID: D22A817D95815393
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,12 @@ This router is used like many others., example:
...
}
s := r.Sub("/api/v1")
s.Handler(http.MethodGet, "/", func(w http.ResponseWriter, r *http.Request) {
...
})
if err := http.ListenAndServe(":8000", r); err != nil {
...
}