final touches
This commit is contained in:
@@ -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);
|
||||
// }
|
||||
//
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user