on-http-y1
Version:
OnRack Http Server
28 lines (20 loc) • 593 B
JavaScript
// Copyright 2015, EMC, Inc.
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: Constants.Views.Directory,
collectionName: 'views'
});
}
return new ViewService();
}