Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work in subdirectory #1

Open
mike-2013 opened this issue May 1, 2023 · 0 comments
Open

Does not work in subdirectory #1

mike-2013 opened this issue May 1, 2023 · 0 comments

Comments

@mike-2013
Copy link

For example my url is http://localhost/test/

    $app = new App();
    
    $home = new Route('/', function($req, $res) {
        return $res->write('Hello World!');
    });
    
    $app->add($home);
    $app->run();

I'm not an expert but it has something to do with Request::url()
Is there an option to set manually url path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant