Skip to content

How can I limit what gets included? #88

Answered by a-chacon
epugh asked this question in Q&A
Discussion options

You must be logged in to vote

How would you detect if an endpoint render HTML or json/xml/csv ? I made OasRails thinking in api only apps.

This is the reason you see this turbo routes too, I try to exclude some common routes, but I think I missed it too.

And yes, I think the @include or @exclude tag comment at controller level can be a great solution, but technically is a bit hard to implement because currently OasRails just read Method’s comments and not Controller’s comments.

Thinking about the turbo native routes included in the documentation. Are this routes inside the namespace api? I mean, OasRails should exclude any route outside the namespace you configure in the initializer, if this is not doing that then pro…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@epugh
Comment options

@epugh
Comment options

@epugh
Comment options

@a-chacon
Comment options

Answer selected by epugh
@epugh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants