Setup IApplicationNavigable route similar to /p/

I'd like to setup a route similar to the /p/ route where I could essentially do simething like /cms/my-key  and each page would be able to have a different layout.

Is this possible?  How does the /p/ content page handle this?