https://github.com/wikimatze/padrino-nested-grape-mounts
Example for https://github.com/padrino/padrino-framework/issues/2156
https://github.com/wikimatze/padrino-nested-grape-mounts
Last synced: 3 months ago
JSON representation
Example for https://github.com/padrino/padrino-framework/issues/2156
- Host: GitHub
- URL: https://github.com/wikimatze/padrino-nested-grape-mounts
- Owner: wikimatze
- Created: 2017-11-07T06:45:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T06:46:11.000Z (over 7 years ago)
- Last Synced: 2025-02-02T01:47:52.648Z (4 months ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install
```
bundle
```# Running
Start the application with `padrino s`. Then browse to to get the master and to
to get the mounted v1 app inside of `api/api.rb`The only caveat is that you need to include the in `config/apps.rb`:
```
# Mounts the core application for this project
Padrino.mount('V1', :app_file => Padrino.root('api/v1.rb'), :app_class => 'Grappe::V1') # this one needs first
Padrino.mount('Api', :app_file => Padrino.root('api/api.rb'), :app_class => 'Grappe::Api').to('/master')
```