Polish main dashboard UI and improve aesthetics

This commit is contained in:
aditya.chandel
2025-08-13 17:41:49 -06:00
committed by Aditya Chandel
parent 800cc4054f
commit b3af1723df
7 changed files with 272 additions and 71 deletions
@@ -22,20 +22,20 @@ public class BookReviewController {
}
@PostMapping("/book/{bookId}/refresh")
@PreAuthorize("@securityUtil.canManipulateLibrary() or @securityUtil.isAdmin()")
@PreAuthorize("@securityUtil.canEditMetadata() or @securityUtil.isAdmin()")
public List<BookReview> refreshReviews(@PathVariable Long bookId) {
return bookReviewService.refreshReviews(bookId);
}
@DeleteMapping("/{id}")
@PreAuthorize("@securityUtil.canManipulateLibrary() or @securityUtil.isAdmin()")
@PreAuthorize("@securityUtil.canEditMetadata() or @securityUtil.isAdmin()")
public ResponseEntity<Void> delete(@PathVariable Long id) {
bookReviewService.delete(id);
return ResponseEntity.noContent().build();
}
@DeleteMapping("/book/{bookId}")
@PreAuthorize("@securityUtil.canManipulateLibrary() or @securityUtil.isAdmin()")
@PreAuthorize("@securityUtil.canEditMetadata() or @securityUtil.isAdmin()")
public ResponseEntity<Void> deleteAllByBookId(@PathVariable Long bookId) {
bookReviewService.deleteAllByBookId(bookId);
return ResponseEntity.noContent().build();