src/main/java/com/webcheckers/ui/GetSigninRoute.java
@Override
    public Object handle(Request request, Response response){
        // Build the View-Model
        final Map<String, Object> vm = new HashMap<>();

        // Displays an error if one exists
        if(request.session().attribute(GetHomeRoute.ERROR) != null){
            vm.put(GetHomeRoute.ERROR, request.session().attribute(GetHomeRoute.ERROR));
            request.session().removeAttribute(GetHomeRoute.ERROR);
        }

        vm.put(TITLE, "Sign in page");

        // Render the view model
        return templateEngine.render(new ModelAndView(vm, VIEW_NAME));
    }
/**
     * Handles a request for a sign in
     * @param request the HTTP request
     * @param response the HTTP response
     * @return the rendered HTML code for the sign in page
     */
Handles a request for a sign in
@param request the HTTP request
@param response the HTTP response
@return the rendered HTML code for the sign in page
Handles a request for a sign in @param request the HTTP request @param response the HTTP response @return the rendered HTML code for the sign in page
@Override
    public Object handle(Request request, Response response){
        final Map<String, Object> vm = new HashMap<>();
        if(request.session().attribute(GetHomeRoute.ERROR) != null){
            vm.put(GetHomeRoute.ERROR, request.session().attribute(GetHomeRoute.ERROR));
            request.session().removeAttribute(GetHomeRoute.ERROR);
        }
        vm.put(TITLE, "Sign in page");
        return templateEngine.render(new ModelAndView(vm, VIEW_NAME));
    }
@ Override public Object handle ( Request request , Response response ) { final Map < String , Object > vm = new HashMap < > ( ) ; if ( request . session ( ) . attribute ( GetHomeRoute . ERROR ) != null ) { vm . put ( GetHomeRoute . ERROR , request . session ( ) . attribute ( GetHomeRoute . ERROR ) ) ; request . session ( ) . removeAttribute ( GetHomeRoute . ERROR ) ; } vm . put ( TITLE , "Sign in page" ) ; return templateEngine . render ( new ModelAndView ( vm , VIEW_NAME ) ) ; }
Handles a request for a sign in
 @param request the HTTP request
 @param response the HTTP response
 @return the rendered HTML code for the sign in page
Handles a request for a sign in @param request the HTTP request @param response the HTTP response @return the rendered HTML code for the sign in page
// Build the View-Model
 // Displays an error if one exists
 // Render the view model
