src/main/java/com/webcheckers/ui/PostSignoutRoute.java
@Override
    public Object handle(Request request, Response response) {
        // Signs out the player
        playerLobby.signOut(((Player)request.session().attribute(GetHomeRoute.CURRENT_USER)).getName());

        // Removes the player's session
        sessions.remove(((Player)request.session().attribute(GetHomeRoute.CURRENT_USER)).getName());

        // Takes the player attribute out of the session attributes
        request.session().removeAttribute(GetHomeRoute.CURRENT_USER);

        // redirects back to the home page
        response.redirect("./");

        return null;
    }
/**
     * Handles a request for a sign out
     * @param request the HTTP request
     * @param response the HTTP response
     * @return the rendered HTML code for the sign out page
     */
Handles a request for a sign out
@param request the HTTP request
@param response the HTTP response
@return the rendered HTML code for the sign out page
Handles a request for a sign out @param request the HTTP request @param response the HTTP response @return the rendered HTML code for the sign out page
@Override
    public Object handle(Request request, Response response) {
        playerLobby.signOut(((Player)request.session().attribute(GetHomeRoute.CURRENT_USER)).getName());
        sessions.remove(((Player)request.session().attribute(GetHomeRoute.CURRENT_USER)).getName());
        request.session().removeAttribute(GetHomeRoute.CURRENT_USER);
        response.redirect("./");
        return null;
    }
@ Override public Object handle ( Request request , Response response ) { playerLobby . signOut ( ( ( Player ) request . session ( ) . attribute ( GetHomeRoute . CURRENT_USER ) ) . getName ( ) ) ; sessions . remove ( ( ( Player ) request . session ( ) . attribute ( GetHomeRoute . CURRENT_USER ) ) . getName ( ) ) ; request . session ( ) . removeAttribute ( GetHomeRoute . CURRENT_USER ) ; response . redirect ( "./" ) ; return null ; }
Handles a request for a sign out
 @param request the HTTP request
 @param response the HTTP response
 @return the rendered HTML code for the sign out page
Handles a request for a sign out @param request the HTTP request @param response the HTTP response @return the rendered HTML code for the sign out page
// Signs out the player
 // Removes the player's session
 // Takes the player attribute out of the session attributes
 // redirects back to the home page
