Skip to content

zanemcca/noMiddleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Issue with loopback middleware

This repo contains some custom error handling middleware attached to the loopback framework. The purpose of this is to show a potential bug with middleware not being run.

The issue appears when there is a 404 error on an api with the correct restApiRoot set.

Examples

GET /api/nonexistent - Will not call middleware
GET /another/nonexistent - Will call the middleware properly

Prep

npm install
npm install -g mocha

Failing Test 1

export NODE_ENV=staging
mocha test

Failing Test 2

export NODE_ENV=production
mocha test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published