Danger

This is an outdated documentation please read the new Monofony documentation instead.

How to configure backend routes

To configure backend routes for your entity, you have to create a new file on backend routes folder config/routes/backend.

Let’s configure our “Article” routes as an example.

# config/routes/backend/article.yaml

app_backend_article:
    resource: |
        alias: app.article
        section: backend
        except: ['show']
        redirect: update
        grid: app_backend_article
        vars:
            all:
                subheader: app.ui.manage_articles
            index:
                icon: newspaper
        templates: backend/crud
    type: sylius.resource

And add it on backend routes configuration.

# config/routes/backend/_main.yaml

[...]

app_backend_article:
    resource: "article.yaml"

And that’s all!