package com.sonymusic.dx.dxadvsearchservice.controllers;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sonymusic.dx.dxadvsearchservice.dto.ContentDTO;
import com.sonymusic.dx.dxadvsearchservice.service.ContentService;

@RestController
@RequestMapping("/content")
public class ContentController {

    @Autowired
    ContentService contentService;

    @GetMapping("/all")
    private List<ContentDTO> getListOfContent() {
        return contentService.getListOfContent();

    }
}
