Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var appsApi = require('./routes/api/apps');
var locationsApi = require('./routes/api/locations');
var devicesApi = require('./routes/api/devices');
var reportApi = require('./routes/api/report');

var errorUtils = require('./error');

// test js
Expand Down Expand Up @@ -47,6 +48,7 @@ app.use('/', index);
app.use('/api/users', usersApi);
app.use('/api/campaigns', campaign);
app.use('/api/campaigns', reportApi);

app.use('/api/apps', appsApi);
app.use('/api/apps', locationsApi);
app.use('/api/apps', devicesApi);
Expand Down Expand Up @@ -77,7 +79,7 @@ app.use(errorUtils.errorHandler);
});
*/

fs.mkdir("upload_images",function(e){
fs.mkdir("public/upload_images",function(e){
if(!e || (e && e.code === 'EEXIST')){
//do something with contents
} else {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"express": "~4.15.2",
"express-fileupload": "^0.1.3",
"morgan": "~1.8.1",
"my-local-ip": "^1.0.0",
"mysql": "^2.13.0",
"serve-favicon": "~2.4.2"
}
Expand Down
Loading