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}")
    private String jenkins;

    @Value("#{environment.CU_GITLAB_DOMAIN}")
    private String gitlab;

    @Value("#{environment.CU_NEXUS_DOMAIN}")
    private String nexus;

    @Value("#{environment.CU_KIBANA_DOMAIN}")
    private String kibana;

    @Value("#{environment.CU_SONAR_DOMAIN}")
    private String sonar;

    @Value("#{environment.CU_LETSCHAT_DOMAIN}")
    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);
    }

}

@@ -574,32 +574,59 @@
 U_JENKINS_DOMAIN
+ ?: 'jenkins.cloudunit.dev'
 %7D%22)%0A    private 
@@ -677,32 +677,58 @@
 U_GITLAB_DOMAIN%7D
+ ?: 'gitlab.cloudunit.dev'
 %22)%0A    private S
@@ -776,32 +776,57 @@
 CU_NEXUS_DOMAIN%7D
+ ?: 'nexus.cloudunit.dev'
 %22)%0A    private S
@@ -877,24 +877,50 @@
 IBANA_DOMAIN
+ ?: 'kibana.cloudunit.dev'
 %7D%22)%0A    priv
@@ -973,32 +973,57 @@
 CU_SONAR_DOMAIN%7D
+ ?: 'sonar.cloudunit.dev'
 %22)%0A    private S
@@ -1081,16 +1081,44 @@
 _DOMAIN%7D
+ ?: 'letschat.cloudunit.dev'
 %22)%0A    p

Fix : add default value for homepage portal