package com.example.demo.controller;

import java.util.List;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.models.ProjectPO;
import com.example.demo.service.ProjectService;

@RestController
public class ProjectController {
	
	private final ProjectService projectService;
	
	public ProjectController(ProjectService projectService) {
		this.projectService = projectService;
	}
	
	@GetMapping("/projects")
	public List<ProjectPO> loadAllProjects() {
		return "TODO load all projects";
	}
	
	@PostMapping("/projects")
	public String createProject() {
		return "TODO create project";
	}
	
	@DeleteMapping("/projects/{id}")
	public String deleteProject() {
		return "TODO delete project";
	}

}
