An open API service indexing awesome lists of open source software.

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

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')
```