Files
Backend/src/main/java/cc/fascinated/api/controller/HomeController.java
Liam c8d5e86876
All checks were successful
deploy / deploy (push) Successful in 41s
add veryyyyyyyyyyyyyyy basic landing page
2024-04-06 06:44:27 +01:00

19 lines
606 B
Java

package cc.fascinated.api.controller;
import cc.fascinated.Consts;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping(value = "/")
public class HomeController {
@RequestMapping(value = "/")
public String home(Model model) {
model.addAttribute("url", Consts.getSITE_URL() + "/eeab5f8a-18dd-4d58-af78-2b3c4543da48");
model.addAttribute("avatar_url", Consts.getSITE_URL() + "/avatar/eeab5f8a-18dd-4d58-af78-2b3c4543da48");
return "index";
}
}