How to use @Resource instead of @Location for ktor routing
I am trying to migrate some code which uses the @Location annotation from the Locations plugin (a deprecated plugin in ktor since release 1.6) to @Resource from the Resources plugin.
The setup as described
here works, but I am running into trouble when I try to refactor some code that uses route.location(someRandomLocation) { }, where someRandomLocation represented a resource (possibly nested in a class...