diff --git a/src/main.rs b/src/main.rs index 4b30383..d326e8a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,8 +60,8 @@ async fn main() -> std::io::Result<()> { .service(book::Borrow) // POST /book/borrow/{id} Borrow a book .service(book::Return) // POST /book/return/{id} Return a book .service(book::Records) // GET /book/borrowings/all Fetch all borrowing records (Admin) - .service(book::GetBookById) // GET /book/{id} Fetch book information by ID .service(book::UserRecords) // GET /book/borrowings Fetch user borrowing records + .service(book::GetBookById) // GET /book/{id} Fetch book information by ID .service(stat::Statistics) // GET /stat Fetch statistics (Admin) .service(logs::Logs) // GET /logs Fetch logs (Admin) })