fix create Router from loopback

This commit is contained in:
Berkeley Martinez
2015-07-02 23:44:34 -07:00
parent e17b838c80
commit 2b80cdbbdc

View File

@ -1,5 +1,5 @@
import debugFactory from 'debug';
import { app$ } from '../common/app';
import { app$ } from '../../common/app';
import { Cat } from 'thundercats';
const debug = debugFactory('freecc:servereact');
@ -11,7 +11,7 @@ const routes = [
];
export default function reactSubRouter(app) {
var router = app.Router();
var router = app.loopback.Router();
routes.forEach(function(route) {
router.get(route, serveReactApp);