Currently my router does not support slugs. There are a couple important things to take into consideration here:
Type safety
Since slugs can be created by the user, it's important to ensure that they are handled as strings and cannot be used to execute code
If I want to support number slugs, I need to be able to have some sort of error handling around routing
Route naming collisions
I ran into this issue before. I will need to ensure that routes of the same name cannot coexist
This is also true for slugs as their names do not equate to different routes. I will need to ensure that those routes cannot be created with error messages displaying conflicts
Currently my router does not support slugs. There are a couple important things to take into consideration here: