Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass api mode through options #7

Open
vitoravelino opened this issue Sep 10, 2021 · 0 comments
Open

Pass api mode through options #7

vitoravelino opened this issue Sep 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@vitoravelino
Copy link
Owner

Sometimes you might have api endpoints being served within the same traditional web app. Having a way of ignoring :edit and :new would be nice.

# routes/web.rb
modular_routes do
  resources :books
end

# routes/api.rb
modular_routes(api: true) do
  resources :books
end
@vitoravelino vitoravelino added the enhancement New feature or request label Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant