File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { searchIssues as searchIssues } from "src/lib/github/issues" ;
2-
3- /*interface GitHubIssue {
4- id: number;
5- title: string;
6- html_url: string;
7- repository_url: string;
8- }
9-
10- interface GitHubSearchResponse {
11- items: GitHubIssue[];
12- error?: string;
13- }*/
14-
15- //type SearchIssuesFn = (_query: string) => Promise<GitHubSearchResponse>;
16- //const searchIssues = rawSearchIssues as SearchIssuesFn;
17-
18- /*export async function GET(req: Request) {
19- const { searchParams } = new URL(req.url);
20- const q = searchParams.get("q") ?? "";
21-
22- const data = await searchIssues(q);
23-
24- return Response.json(data);
25- }*/
1+ import { searchIssues } from "../../../lib/github/issues" ;
262
273export async function GET ( req : Request ) {
284 const { searchParams } = new URL ( req . url ) ;
You can’t perform that action at this time.
0 commit comments