package com.example.backend.core.api;

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

@Controller
@RequestMapping(AdminController.URL)
public class AdminController {
    public static final String URL = "/admin";

    private static final String ADMIN_VIEW = "admin";

    @GetMapping
    public String getContacts(Model model) {
        return ADMIN_VIEW;
    }
}
