~steeven/play/magicroute

« back to all changes in this revision

Viewing changes to framework/tests/test-application/app/controllers/Orders.java

  • Committer: U-STEEVEN-EPC\Administrator
  • Date: 2008-11-24 14:07:19 UTC
  • Revision ID: administrator@steeven-epc-20081124140719-qz3ehgysxl9vbgpm
new magic route: auto-route from controller's reflection

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package controllers;
2
2
 
3
 
import play.mvc.Controller;
 
3
import play.mvc.route.Path;
4
4
 
5
5
public class Orders extends Application {
6
6
 
10
10
        models.Test.test();
11
11
    }
12
12
 
13
 
    public static void show(Long id, String name) {
 
13
    @Path("")
 
14
    public static void show(@Path Long id, String name) {
14
15
        render(id, name);
15
16
    }
16
17