package io.khasang.wlogs.controller;

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

@Controller
public class AppController {
    @RequestMapping("/")
    public String welcome(Model model) {
        model.addAttribute("greeting", "Welcome to our best Shop!");
        model.addAttribute("tagline", "The one and only amazing shop system!");
        return "welcome";
    }

    @RequestMapping("/backup")
    public String backup(Model model) {
        model.addAttribute("backup", "Success");
        return "backup";
    }

    @RequestMapping("/admin")
    public String admin(Model model) {
        model.addAttribute("admin", "You are number 1!");
        return "admin";
    }
}
@@ -779,10 +779,158 @@
 %22;%0A    %7D
+%0A%0A    @RequestMapping(%22/login%22)%0A    public String login(Model model) %7B%0A        model.addAttribute(%22login%22, %22Success%22);%0A        return %22login%22;%0A    %7D
 %0A%7D

modify appController for adding /login page