Created
December 19, 2011 03:25
-
-
Save Fandora/1495246 to your computer and use it in GitHub Desktop.
MVC or not-MVC
This file contains hidden or 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
app.post("/api/upload-picture", function(req, res) { | |
if(!req.session.signined) { | |
throw new BadRequest("signin first"); | |
} | |
if(!req.files.picture) { | |
throw new BadRequest("illegal file element name"); | |
} | |
var h = new UploadPictureHandler(req, res); | |
h.run(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment