package com.mr.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class HomeController {

    @GetMapping("/")
    public Map welcome() {
        Map map = new HashMap();
        map.put("message", "welcome");
        return map;
    }
}

@@ -80,16 +80,77 @@
 apping;%0A
+import org.springframework.web.bind.annotation.PathVariable;%0A
 import o
@@ -447,10 +447,255 @@
 ;%0A    %7D%0A
+    %0A    @GetMapping(%22/checkSession/%7BsessionId%7D%22)%0A    public Map checkSessionId(@PathVariable String sessionId) %7B%0A        Map map = new HashMap();%0A        map.put(%22status%22, sessionId.equals(%221%22) ? %22valid%22 : %22invalid%22);%0A        return map;%0A    %7D%0A
 %7D%0A

add new service