Skip to content

Commit

Permalink
Removed unneeded api namespace, fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelkiessling committed Jan 12, 2016
1 parent dc3afd7 commit 8bf9305
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion api/app/AppLoader.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import components.CassandraRepositoryComponents
import controllers.Statistics
import play.api.ApplicationLoader.Context
import play.api.routing.Router
import play.api.{Application, ApplicationLoader, BuiltInComponentsFromContext}
import router.Routes

class AppLoader extends ApplicationLoader {
override def load(context: ApplicationLoader.Context): Application =
Expand All @@ -11,7 +13,7 @@ class AppLoader extends ApplicationLoader {
class AppComponents(context: Context) extends BuiltInComponentsFromContext(context) with CassandraRepositoryComponents {

lazy val applicationController = new controllers.Application()
lazy val statisticsController = new controllers.api.Statistics(statisticsRepository)
lazy val statisticsController = new Statistics(statisticsRepository)
lazy val assets = new controllers.Assets(httpErrorHandler)

override def router: Router = new Routes(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controllers.api
package controllers

import play.api.libs.functional.syntax._
import play.api.libs.json._
Expand Down
3 changes: 1 addition & 2 deletions api/conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ GET / controllers.Application.index
GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset)

# REST API

GET /testresults/:testcaseId/statistics/ controllers.api.Statistics.show(testcaseId: String)
GET /testresults/:testcaseId/statistics/ controllers.Statistics.show(testcaseId: String)

0 comments on commit 8bf9305

Please sign in to comment.