Skip to content

suggestion for router.js #33

Description

@amanshawar

in router.js
else
{
handlers.publicHandler(request,response);
}
i think the code should be like this:

else if(endpoint.includes('/public/')){
handlers.publichandler(request, response);
}
else {
response.writeHead(404, {'Content-Type': 'text/html'})
response.end('

Page Not Found

')
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions