DynamicResource
Creates a new DynamicResource. The passed slug should be a single word, which is the name of the wildcard added to the parent's URL: for example, "user" or "id". When such a resource is imported into Ktor, it recognizes that it is a wildcard. The exact value can be accessed on the server using the idOf function.
Parameters
Parent
The type of the direct parent of this resource. Because of restrictions of the Kotlin language, it must be specified explicitly even if it already appears in the line because it is passed to parent.