codecheck2
codecheck2 copied to clipboard
Isolate Play dependencies: Controllers
In the controllers package, move as much code as possible to classes that do not depend on the Play API. For example, in controllers.Files, all three methods can call methods in a new class ui.Files that return the HTML to be displayed. The controllers.Files methods should only deal with the Play-specific logic (parsing HTTP requests, sending HTTP responses, cookies, etc.) ui.Files should have no Play dependencies. Repeat for Check, Upload, etc.
The views templates should be eliminated. Just generate the HTML in Java.
I will be working on this