fix: update Dockerfile to run tests during build and adjust TodoController request mapping
This commit is contained in:
@@ -11,8 +11,7 @@ import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/todos")
|
||||
@CrossOrigin(origins = "*")
|
||||
@RequestMapping("/todos")
|
||||
public class TodoController {
|
||||
|
||||
private final TodoService todoService;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
server.servlet.context-path=/api
|
||||
spring.application.name=backend
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/tododb
|
||||
spring.datasource.username=postgres
|
||||
|
||||
Reference in New Issue
Block a user