Skip to content

Commit

Permalink
Update:
Browse files Browse the repository at this point in the history
    - 解决 .service 静态资源 URL 和动态资源 URL 冲突
  • Loading branch information
smallphan committed Nov 29, 2024
1 parent cd30a9a commit d6a773c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit d6a773c

Please sign in to comment.