trailpack-hapi icon indicating copy to clipboard operation
trailpack-hapi copied to clipboard

warn user if an ORM is not installed, but footprints are enabled

Open tjwebb opened this issue 10 years ago • 5 comments

If no ORM is installed but config.footprints.models is configured, then FootprintService will likely not exist and the footprint routes will crash.

tjwebb avatar Jan 22 '16 05:01 tjwebb

Maybe this can be done under trailpack-router instead of hapi/express/koa.... ?

jaumard avatar Jan 22 '16 06:01 jaumard

It can be done under validate method of trailpack-footprints

jaumard avatar Apr 09 '16 20:04 jaumard

Does this mean we can close this issue w/r/t trailpack-hapi?

weyj4 avatar Apr 18 '16 18:04 weyj4

@jaumard can we close the issue?

weyj4 avatar Apr 20 '16 12:04 weyj4

If we move the issue on another repo yes. There multiple choice for this :

trailpack-router can check this, warn user and ignore routes to not have crashing routes or trailpack-footprints can check this and warn user, but routes will crash

jaumard avatar Apr 20 '16 12:04 jaumard