package org.jbb.system.web.session;

import org.jbb.system.api.model.session.UserSession;
import org.jbb.system.api.service.SessionService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@Controller
@RequestMapping("/acp/system/sessions")
public class SessionController {

    private SessionService sessionService;
    private static final String VIEW_NAME = "acp/system/session";


    public SessionController(SessionService sessionService){
        this.sessionService = sessionService;
    }

    @RequestMapping(method = RequestMethod.GET)
    public String getSessionView(Model model){

        List<UserSession> userSessionList = sessionService.getAllUserSessions();
        model.addAttribute("userSessions",userSessionList);

        return VIEW_NAME;
    }




}

@@ -562,16 +562,17 @@
 /session
+s
 %22;%0A%0A%0A   

Fix view name