Permalink
Browse files

[RJA-1898][feature] additional hypermedia links

  • Loading branch information...
1 parent cdb1f1f commit 872fd5d934c574f1f45d2fc5cefa931cf00d2243 Rafael Bagmanov committed Mar 20, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 frontend/src/main/scala/com/griddynamics/genesis/rest/RootController.scala
@@ -29,7 +29,11 @@ class RootController {
val links: Seq[Link] =
collectLinks(classOf[ProjectsController], classOf[Project], LinkTarget.COLLECTION) ++
- (if (isAdminOrReadOnly) collectLinks(classOf[SettingsController], classOf[SystemSettings], LinkTarget.COLLECTION) else Seq()) ++
+ (if (isAdminOrReadOnly)
+ collectLinks(classOf[SettingsController], classOf[SystemSettings], LinkTarget.COLLECTION) ++
+ Seq(LinkBuilder(HrefBuilder.absolutePath("rest/jobs-stat"), LinkTarget.COLLECTION, RequestMethod.GET))
+ else
+ Seq()) ++
(if (!isLogoutDisabled) Seq(LinkBuilder(HrefBuilder.absolutePath("logout"), LinkTarget.LOGOUT, RequestMethod.GET)) else Seq())
Map(

0 comments on commit 872fd5d

Please sign in to comment.