Cockpit-HQ / Cockpit

Cockpit Core - Content Platform
https://getcockpit.com
Other
388 stars 47 forks source link

[FEATURE]: `type` filter for API request /pages/routes #215

Closed mountainash closed 2 months ago

mountainash commented 2 months ago

It would be nice to limit the /api/pages/routes endpoint to filter by include (only) or exclude the returned results by a set-able type query.

aheinze commented 2 months ago

What is a possible use case here?

mountainash commented 2 months ago

When you need to build different routes for non-content pages (which are generally handled by a runtime "catchall" route).

aheinze commented 2 months ago

Will be available in the next release 👍