rebootx-on-prem
rebootx-on-prem copied to clipboard
refactor(http-server-go): use routing enhancements for go 1.22
Suggested by @Gosti.
See resource here : https://go.dev/blog/routing-enhancements
https://github.com/gorilla/mux is not needed anymore to read {id} from the path.
That being said, we still need it for the middlewares (router.Use) and CORS (handlers.CORS).
Let's wait. Maybe Go will provide these natively in next versions as well.