Skip to content

route bug or not? #470

Description

@s524797336

I'm using ci with vue, vue has it route, i set Home::index is vue's index.html
And i want route /api/(.*?)/(:any) -> \App\Controllers$1::$2
$routes->add('api/(.*?)/(:any)', '$1::$2'); $routes->add('(:any)', 'Home::index');
It doesn't work and i print some var find out $1 never changed only $2 changed, when i write like this
$routes->add('api/(.*?)/(:any)', '\App\Controllers\\\$1::$2'); $routes->add('(:any)', 'Home::index');
This will work, is this a bug or just it's way?

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions