-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
var express = require('express'); | ||
var config = require('./config'); | ||
var S3UploadService = require('./services/s3-uploader'); | ||
var UploadService = require('./services/upload'); | ||
var EmbedService = require('./services/embed'); | ||
|
||
// Express app | ||
var app = express(); | ||
|
||
// Demo setup | ||
app.use(express.static('demo')); | ||
app.use('/dist', express.static('dist')); | ||
app.get('/', function(req, res) { | ||
res.sendFile('/'); | ||
}); | ||
|
||
// Routes | ||
app.post('/upload', S3UploadService); | ||
app.post('/upload', UploadService); | ||
app.get('/embed', EmbedService); | ||
|
||
app.listen(5000, function() { | ||
console.log('content-kit-editor server: listening on port %d', this.address().port); | ||
console.log('content-kit-server: listening on port %d', this.address().port); | ||
}); | ||
|
||
module.exports = app; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.