Last active
June 28, 2019 10:46
-
-
Save samuelorji/719d291a1ae7decf3c67a8662dab5aef to your computer and use it in GitHub Desktop.
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
(pathEndOrSingleSlash & get) { | |
complete( | |
HttpEntity( | |
ContentTypes.`text/html(UTF-8)`, | |
""" | |
|<html> | |
| <body> | |
| <form action="/upload" method="post" enctype="multipart/form-data"> | |
| <input type="file" name="myFile"> | |
| <button type="submit">Upload</button> | |
| </form> | |
| </body> | |
|</html> | |
""".stripMargin | |
) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment