api/rest/view/view.js
// Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved
'use strict';
var di = require('di');
module.exports = viewServiceFactory;
di.annotate(viewServiceFactory, new di.Provide('Views'));
di.annotate(viewServiceFactory, new di.Inject(
'Constants',
'DbRenderableContent',
'Util'
));
function viewServiceFactory(Constants, DbRenderable, Util) {
Util.inherits(ViewService, DbRenderable);
function ViewService() {
DbRenderable.call(this, {
directory: '../../data/views',
collectionName: 'views'
});
}
return new ViewService();
}