I'd like to build a gin
program which serves the following routes:
r.GET("/special", ... // Serves a special resource.
r.Any("/*", ... // Serves a default resource.
However, such a program panics at runtime:
[GIN-debug] GET /special --> main.main.func1 (2 handlers)
[GIN-debug] GET /* --> main.main.func2 (2 handlers)
panic: wildcard route '*' conflicts with existing children in path '/*'
Is it possible to create a gin program which serves a default resource for every route except for a single one which serves a different resource?
Many pages on the web lead me to believe it is not possible using the default gin router, so what is the easiest way to serve these routes from a gin program?