Skip to content

Instantly share code, notes, and snippets.

@duanebester
Created December 9, 2019 00:15
Show Gist options
  • Save duanebester/c57b9df30c21ef58db0d2bf2ce17a482 to your computer and use it in GitHub Desktop.
Save duanebester/c57b9df30c21ef58db0d2bf2ce17a482 to your computer and use it in GitHub Desktop.
Upload Route
val uploadRoute =
pathPrefix("image") {
path("upload") {
post {
uploadedFile("fileUpload") {
case (_, file) =>
val image = ImageIO.read(file)
processImage(image)
complete(StatusCodes.OK)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment