Child: [14c0cf] (diff)

Download this file

Application.java    40 lines (29 with data), 874 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package controllers;
import play.api.libs.iteratee.Enumerator;
import play.api.libs.iteratee.Iteratee;
import play.api.mvc.PlainResult;
import play.api.mvc.SimpleResult;
import play.libs.Json;
import play.mvc.Controller;
import play.mvc.Result;
import scala.Function1;
import views.html.index;
public class Application extends Controller {
public static Result index() {
return ok(index.render("Your new application is ready."));
}
public static Result projects() {
Result projectList = ClientAPIController.projects();
Enumerator body = ((SimpleResult)projectList.getWrappedResult()).body();
return projectList;
}
public static Result getProject(String name) {
return TODO;
}
public static Result getMetrics(String projectName) {
return TODO;
}
public static Result search() {
return TODO;
}
}