package ru.serega6531.packmate.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ru.serega6531.packmate.model.pojo.FakeServiceDto;
import ru.serega6531.packmate.service.ServicesService;

import java.util.List;

@RestController
@RequestMapping("/api/fake/")
@RequiredArgsConstructor
public class FakeFacadeController {

    private final ServicesService servicesService;

    @GetMapping("services")
    public List<FakeServiceDto> getServices() {
        return servicesService.findAllForFakeFacade();
    }
}
