package com.authid.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.time.Instant;
import java.util.Map;

/**
 * @author Chris Campo
 */
@Controller
public class RootController {

    @RequestMapping("/")
    public String home(final Map<String, Object> model) {
        model.put("message", "Hello World");
        model.put("title", "Hello Home");
        model.put("timestamp", Instant.now());
        return "home";
    }

    @RequestMapping("/foo")
    public String foo() {
        throw new RuntimeException("Expected exception in controller");
    }
}

@@ -515,140 +515,7 @@
    %7D
-%0A%0A    @RequestMapping(%22/foo%22)%0A    public String foo() %7B%0A        throw new RuntimeException(%22Expected exception in controller%22);%0A    %7D
 %0A%7D%0A

Remove unused test method