Last active
October 4, 2016 05:12
-
-
Save kenichi-odo/eec598d667a19ff46b244ec695893924 to your computer and use it in GitHub Desktop.
VaporでViewsの中をそのまま返す ref: http://qiita.com/kenichi_odo/items/14be2b411363ed6d804f
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
drop.get("*") { request in | |
var path = request.uri.path.characters | |
path.removeFirst() | |
return try drop.view(String(path)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment