Skip to content
This repository was archived by the owner on Feb 13, 2022. It is now read-only.
This repository was archived by the owner on Feb 13, 2022. It is now read-only.

Nested Routes? #809

Description

@trollboy

Currently working on something where dynamic nested routes or the ability to prepend would come in awfully handy. Example is:

index.php
Route\get('/rest', fn() => RestController\Routes() );
RestController\Routes.php

Class Routes {
       private $prepend='/rest'; 
       public __construct(){
            /** handles routing for /rest/todos **/
            Route\class_name('/todos', TodosController::class);
       }
}       

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions