package fr.treeptik.cloudunit.controller;

import fr.treeptik.cloudunit.dto.AboutResource;
import fr.treeptik.cloudunit.dto.HomepageResource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by nicolas on 12/12/2016.
 */
@Controller
@RequestMapping("/homepage")
public class HomepageController {

    @Value("#{environment.CU_JENKINS_DOMAIN ?: 'jenkins.cloudunit.dev'}")
    private String jenkins;

    @Value("#{environment.CU_GITLAB_DOMAIN} ?: 'gitlab.cloudunit.dev'")
    private String gitlab;

    @Value("#{environment.CU_NEXUS_DOMAIN} ?: 'nexus.cloudunit.dev'")
    private String nexus;

    @Value("#{environment.CU_KIBANA_DOMAIN ?: 'kibana.cloudunit.dev'}")
    private String kibana;

    @Value("#{environment.CU_SONAR_DOMAIN} ?: 'sonar.cloudunit.dev'")
    private String sonar;

    @Value("#{environment.CU_LETSCHAT_DOMAIN} ?: 'letschat.cloudunit.dev'")
    private String letschat;

    @RequestMapping(value = "/friends", method = RequestMethod.GET)
    public ResponseEntity<?> listFriends() {
        HomepageResource resource = new HomepageResource(jenkins, gitlab, kibana, nexus, sonar, letschat);
        return ResponseEntity.ok(resource);
    }

}

@@ -680,25 +680,24 @@
 ITLAB_DOMAIN
-%7D
  ?: 'gitlab.
@@ -702,32 +702,33 @@
 b.cloudunit.dev'
+%7D
 %22)%0A    private S
@@ -779,25 +779,24 @@
 NEXUS_DOMAIN
-%7D
  ?: 'nexus.c
@@ -800,32 +800,33 @@
 s.cloudunit.dev'
+%7D
 %22)%0A    private S
@@ -976,25 +976,24 @@
 SONAR_DOMAIN
-%7D
  ?: 'sonar.c
@@ -997,32 +997,33 @@
 r.cloudunit.dev'
+%7D
 %22)%0A    private S
@@ -1080,17 +1080,16 @@
 T_DOMAIN
-%7D
  ?: 'let
@@ -1108,16 +1108,17 @@
 nit.dev'
+%7D
 %22)%0A    p

Fix : add default value for homepage portal