Skip to content

Add nested paths #6

@mirza99

Description

@mirza99

Add the possibility to have nested paths like :

// Routes config
const routes = {
    persons: {
        host: 'https://wwww.google.com',
        path: '/persons',
        findById: {
            path: "/{id}",
            getSettings: {
              path: '/settings'
            }
        }
    }
}

Use
routing.generate('persons.findById.getSettings', {id: xxx})

Generates
https://www.google.com/persons/xxx/settings

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions