Permalink
Browse files

Merge pull request #889 from bugzmanov/jobs

[RJA-1898][feature] additional hypermedia links
  • Loading branch information...
2 parents cdb1f1f + 872fd5d commit ee416b13e95786ecc186c66ce542307c6638d0e4 @rsvato 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 ee416b1

Please sign in to comment.