Skip to content

Commit

Permalink
#140 Rename controller
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Oct 9, 2018
1 parent 024b1ff commit 0cd415a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import play.api.mvc.{ AbstractController, Action, AnyContent, ControllerComponen
import javax.inject.{ Inject, Singleton }

@Singleton
class Default @Inject() (configuration: Configuration, components: ControllerComponents) extends AbstractController(components) {
def home: Action[AnyContent] = Action {
class Home @Inject() (configuration: Configuration, components: ControllerComponents) extends AbstractController(components) {
def redirect: Action[AnyContent] = Action {
Redirect(configuration.get[String]("play.http.context").stripSuffix("/") + "/index.html")
}
}
2 changes: 1 addition & 1 deletion conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ~~~~


GET / org.thp.cortex.controllers.Default.home
GET / org.thp.cortex.controllers.Home.redirect
GET /api/health org.thp.cortex.controllers.StatusCtrl.health
GET /api/logout org.thp.cortex.controllers.AuthenticationCtrl.logout()
POST /api/login org.thp.cortex.controllers.AuthenticationCtrl.login()
Expand Down

0 comments on commit 0cd415a

Please sign in to comment.