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(ContactsController.URL)
public class ContactsController {
    public static final String URL = "/contacts";

    private static final String CONTACTS_VIEW = "contacts";

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