From d6a773c91f2d5bc03653c35f95dd56aab15ecf63 Mon Sep 17 00:00:00 2001 From: smallphan Date: Fri, 29 Nov 2024 17:38:29 +0800 Subject: [PATCH] =?UTF-8?q?Update:=20=20=20=20=20-=20=E8=A7=A3=E5=86=B3=20?= =?UTF-8?q?.service=20=E9=9D=99=E6=80=81=E8=B5=84=E6=BA=90=20URL=20?= =?UTF-8?q?=E5=92=8C=E5=8A=A8=E6=80=81=E8=B5=84=E6=BA=90=20URL=20=E5=86=B2?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) })