Created
June 27, 2018 18:30
-
-
Save azamsharp/75638fec31380a3b0414977c98000260 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
import Vapor | |
/// Register your application's routes here. | |
public func routes(_ router: Router) throws { | |
router.get("movies") { request in | |
return "movies" | |
} | |
router.get("movies/fiction/1992") { request in | |
return "Fiction Movies 1992" | |
} | |
router.get("movies","fiction","1992") { request in | |
return "Fiction Movies 1992" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment