Plug-in that acts like content page

Is there a way to create a plug-in that acts like a content page? I would like to add a route, but every page that renders under that route has its own configuration

/key1/{page key1}

/key1/{page key}

one route, but have different widgets on each page