koajs / koa-hbs

Handlebars templates for Koa.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem when mounting app on another app

MBehtemam opened this issue · comments

Hi, i have two app App1 and App2 . App1 is my startup application . App2 have some handlebars view. but when i mount App2 on App1 with koa-mount middleware these problem happen :

  1. When start the application and try to load project in error i get this error :

    Error: ENOENT, open 'g:\NAP\Client\Applications\AutenticationUI\views\index.hbs'

  2. If i create index.hbs and mount on App1 I see index.hbs on localhost:3000 but cant see other route and say not found

Were you able to resolve this? Could you provide some code that reproduces the problem? Thanks!

I cant to resolve this problem and, now im using koa-static but im try to find the problem and create a sample of this problem and send it.
thanks