loopback/test/fixtures/simple-integration-app/app.js

13 lines
404 B
JavaScript

var loopback = require('../../../');
var path = require('path');
var app = module.exports = loopback();
app.boot(__dirname);
app.use(loopback.favicon());
app.use(loopback.cookieParser({secret: app.get('cookieSecret')}));
var apiPath = '/api';
app.use(apiPath, loopback.rest());
app.use(loopback.static(path.join(__dirname, 'public')));
app.use(loopback.urlNotFound());
app.use(loopback.errorHandler());