first commit
This commit is contained in:
11
app/search/actions.ts
Normal file
11
app/search/actions.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
'use server';
|
||||
|
||||
import { searchDracin } from '@/lib/dramabox';
|
||||
import { Subject } from '@/lib/api';
|
||||
import { DramaboxItem } from '@/lib/dramabox';
|
||||
|
||||
export async function searchDracinAction(query: string, page: number = 1) {
|
||||
const dracinData = await searchDracin(query, page, 20);
|
||||
// Return raw data, mapping will happen in client or here.
|
||||
return dracinData;
|
||||
}
|
||||
Reference in New Issue
Block a user