Created
January 8, 2016 08:02
-
-
Save astrsk-hori/0dd4357b2b433a04c815 to your computer and use it in GitHub Desktop.
Play Framework 2.4でURLの末尾スラッシュに対応 ref: http://qiita.com/astrsk_hori/items/19d1263c2747579b6057
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
GET /*path/ controllers.Application.untrail(path: String) |
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
public Result untrail(String path) { | |
return movedPermanently("/" + path); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment