13 lines
278 B
JavaScript
13 lines
278 B
JavaScript
|
var loopback = require('loopback');
|
||
|
var app = loopback();
|
||
|
var explorer = require('../');
|
||
|
|
||
|
var Product = loopback.Model.extend('product');
|
||
|
Product.attachTo(loopback.memory());
|
||
|
app.model(Product);
|
||
|
|
||
|
app.use(loopback.rest());
|
||
|
app.use('/explorer', explorer(app));
|
||
|
|
||
|
app.listen(3000);
|