final touches
CI/CD / Deploy (push) Has been cancelled
CI/CD / Backend Unit Tests (push) Has been cancelled

This commit is contained in:
2026-06-11 13:54:10 +02:00
parent 7d7e641f5b
commit e3529f892c
3 changed files with 11 additions and 10 deletions
@@ -2,7 +2,6 @@ package dev.ksan.etfoglasiserver.config;
import dev.ksan.etfoglasiserver.service.JWTService;
import dev.ksan.etfoglasiserver.service.MyUserDetailsService;
import dev.ksan.etfoglasiserver.service.UserService;
import io.jsonwebtoken.JwtException;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
@@ -25,7 +25,7 @@ public class EntryController {
return service.getEntryById(entryId);
}
//ignore this for now
// TODO only for testing
@PostMapping("/entries")
public void addEntry(@RequestBody EntryDTO entry) {
service.addEntry(entry);
@@ -62,13 +62,14 @@ public class EntryController {
}
@PutMapping("/entries")
public void updateEntry(@RequestBody EntryDTO entry) {
service.updateEntry(entry);
}
// @PutMapping("/entries")
// public void updateEntry(@RequestBody EntryDTO entry) {
// service.updateEntry(entry);
// }
@DeleteMapping("/entries/{entryId}")
public void deleteEntry(@PathVariable String entryId) {
service.deleteEntry(entryId);
}
// @DeleteMapping("/entries/{entryId}")
// public void deleteEntry(@PathVariable String entryId) {
// service.deleteEntry(entryId);
// }
//
}