chore: main controller is now people values controller, as it better suits it's purpose

This commit is contained in:
Marcin Alchimowicz 2024-01-17 23:13:45 +01:00
parent c01e29d6d2
commit 1896f2582c

View File

@ -1,17 +1,14 @@
package com.example.prapro2spring.controller;
import com.example.prapro2spring.dto.AllPeopleValues;
import com.example.prapro2spring.repository.PeopleRepository;
import com.example.prapro2spring.service.PersonValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/api/main")
public class MainController {
public class PeopleValuesController {
@Autowired
private PeopleRepository peopleRepository;
@Autowired
private PersonValueService PersonValueService;