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

Add failing path to errors #111

Closed
kdong007 opened this issue Jan 14, 2018 · 0 comments
Closed

Add failing path to errors #111

kdong007 opened this issue Jan 14, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@kdong007
Copy link

@kdong007 kdong007 commented Jan 14, 2018

I have my plugin configured as

exports.plugin = {
    register: server => {
        server.route([
            {
                method: "GET",
                path: "/{param*}",
                handler: {
                    directory: {
                        path: "./build",
                        redirectToSlash: true,
                        index: true,
                    },
                },
            },
        ]);
    },
    name: "share",
};

my static assets are all in ./build folder, but all i got is

{
statusCode: 404,
error: "Not Found",
message: "Not Found"
}

Is there some way I can see where my url is mapped to?

@kanongil kanongil changed the title is there some way to debug the path matching Add failing path to errors Jan 15, 2018
@kanongil kanongil added the feature label Jan 15, 2018
kanongil added a commit to kanongil/inert that referenced this issue Jan 15, 2018
kanongil added a commit to kanongil/inert that referenced this issue Jan 15, 2018
kanongil added a commit to kanongil/inert that referenced this issue Jan 15, 2018
kanongil added a commit to kanongil/inert that referenced this issue Jan 15, 2018
@kanongil kanongil closed this in c2a2703 Jan 15, 2018
@kanongil kanongil added this to the 5.1.0 milestone Jan 15, 2018
@kanongil kanongil self-assigned this Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.