From 4c2486edb16d782294db258b4861e0312fe06163 Mon Sep 17 00:00:00 2001 From: Daniel <59575049+lumijiez@users.noreply.github.com> Date: Thu, 21 Sep 2023 13:00:20 +0300 Subject: [PATCH] Delete src/main/java/com/faf223/expensetrackerfaf/controllers directory --- .../controllers/MainController.java | 66 ------------------- 1 file changed, 66 deletions(-) delete mode 100644 src/main/java/com/faf223/expensetrackerfaf/controllers/MainController.java diff --git a/src/main/java/com/faf223/expensetrackerfaf/controllers/MainController.java b/src/main/java/com/faf223/expensetrackerfaf/controllers/MainController.java deleted file mode 100644 index 875259d..0000000 --- a/src/main/java/com/faf223/expensetrackerfaf/controllers/MainController.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.faf223.expensetrackerfaf.controllers; - -import entities.Expense; -import entities.Income; -import entities.Role; -import entities.User; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -@RestController -public class MainController { - - @GetMapping("/") - public String helloWorld() { - return "Hello, World!"; - } - - @GetMapping("/users/get/{id}") - public User getUser(@PathVariable int id) { - return new User(id, "Test", null, null, null, null, null, null); - } - - @PostMapping("/users/set/{id}/name") - public String setName(@PathVariable int id, - @RequestParam("name") String name) { - throw new UnsupportedOperationException("Waiting for the DB."); - } - - @PostMapping("/users/set/{id}/email") - public String setEmail(@PathVariable int id, - @RequestParam("email") String email) { - throw new UnsupportedOperationException("Waiting for the DB."); - } - - @PostMapping("/users/set/{id}/login") - public String setLogin(@PathVariable int id, - @RequestParam("login") String login) { - throw new UnsupportedOperationException("Waiting for the DB."); - } - - @PostMapping("/users/set/{id}/password") - public String setPassword(@PathVariable int id, - @RequestParam("password") String password) { - throw new UnsupportedOperationException("Waiting for the DB."); - } - - @PostMapping("/users/set/{id}/role") - public String setRole(@PathVariable int id, - @RequestParam("role") Role role) { - throw new UnsupportedOperationException("Waiting for the DB."); - } - - @PostMapping("/users/set/{id}/expenses") - public String setExpenses(@PathVariable int id, - @RequestParam("expenses") List expenses) { - throw new UnsupportedOperationException("Waiting for the DB."); - } - - @PostMapping("/users/set/{id}/incomes") - public String setIncomes(@PathVariable int id, - @RequestParam("incomes")List incomes) { - throw new UnsupportedOperationException("Waiting for the DB."); - } - -}