I am getting a 404 error from a URL pattern with a quite simple parameter in it.
I am using gin-gonic with golang.
Here is my main programme. I've removed all other routing to isolate the problem.
func main() {
r := gin.Default()
r.GET("/action/:id", controllers.ActionHandler)
r.GET("/home", controllers.Home)
config.Init()
r.LoadHTMLGlob("./templates/*/*")
// routes.AuthRoutes(r)
r.Run("localhost:8080")
}
When the programme runs, the browser recognises "/home"
.
But it does not recognise "/action/demand"
I'm flummoxed