Created
June 20, 2014 14:12
-
-
Save Riduidel/916feaa9d908494dab35 to your computer and use it in GitHub Desktop.
La route vers la liste des todo
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
| /** | |
| * Ici todo est le nom du fichier du template, sans l'extension thl.html | |
| */ | |
| @View("todo") | |
| Template todoList; | |
| /** | |
| * Et donc quand on va aller sur http://localhost:9000/list, ça va afficher le template #todoList qui n'existe pas encore ... d'où une erreur. | |
| * @return | |
| */ | |
| @Route(method = HttpMethod.GET, uri = "/list") | |
| public Result todoList() { | |
| return ok(render(todoList)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment