-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
33 lines (28 loc) · 1.13 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict';
/*
* Defining the Package
*/
var Module = require('meanio').Module;
var MeanUpload = new Module('mean-upload');
/*
* All MEAN packages require registration
* Dependency injection is used to define required modules
*/
MeanUpload.register(function(app, auth, database) {
//We enable routing. By default the Package Object is passed to the routes
MeanUpload.routes(app, auth, database);
MeanUpload.aggregateAsset('js', '/packages/mean-upload/public/assets/lib/danialfarid-angular-file-upload/dist/angular-file-upload-shim.min.js', {
absolute: true
});
MeanUpload.aggregateAsset('js', '/packages/mean-upload/public/assets/lib/danialfarid-angular-file-upload/dist/angular-file-upload.min.js', {
absolute: true
});
MeanUpload.aggregateAsset('js', '/packages/mean-upload/public/assets/lib/danialfarid-angular-file-upload/dist/angular-file-upload.min.js', {
absolute: true
});
MeanUpload.aggregateAsset('css', '/packages/mean-upload/public/assets/css/meanUpload.css', {
absolute: true
});
MeanUpload.angularDependencies(['angularFileUpload']);
return MeanUpload;
});