diff --git a/backend/src/apis/index.ts b/backend/src/apis/index.ts index a1888f1a..bfaa50f6 100644 --- a/backend/src/apis/index.ts +++ b/backend/src/apis/index.ts @@ -30,7 +30,7 @@ router.post('/articles/temporary', catchAsync(articlesController.craeteTemporary router.post('/image', multer().single('image'), catchAsync(imagesController.createImage)); -router.get('/books/search', catchAsync(booksController.getSearchedBooks)); +router.get('/books/search', catchAsync(booksController.searchBooks)); router.get('/books/:bookId', decoder, catchAsync(booksController.getBook)); router.get('/books', decoder, catchAsync(booksController.getBooks)); router.post('/books', catchAsync(guard), catchAsync(booksController.createBook));