Skip to content

Commit

Permalink
[fix] fix the search result typing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinOrange committed Aug 12, 2024
1 parent 4077f2e commit c36f7f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/api/search/[keyword].ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse<Respon
const result: TSearchResultItem[] = SearchIndex.search(searchText).map((item) => ({
id: item.id,
title: item.title,
summary:item.summary,
tags: item.tags,
}));
res.status(200).json(result);
Expand Down

0 comments on commit c36f7f6

Please sign in to comment.