Skip to content

"The route path must end with a parameter" #55

@prashaantt

Description

@prashaantt

The following route fails hard at this line:

server.route({
    path: '/favicon.ico',
    method: 'GET',
    handler: {
        directory: {
            path: 'public'
        }
    }
});

The tutorial says it's allowed (and preferred over /favicon.{ext} — which of course does work).

I don't know enough yet but I think all routing rules ought to be deferred to hapi core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    non issueIssue is not a problem or requires changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions