Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
add /api/snippets route
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelkraft committed May 6, 2024
1 parent 07adae0 commit f5e653d
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 275 deletions.
6 changes: 6 additions & 0 deletions app/api/snippets/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { NextResponse } from "next/server";
import { snippetGroups } from "../../../data/snippets";

export async function GET() {
return NextResponse.json(snippetGroups);
}
Loading

0 comments on commit f5e653d

Please sign in to comment.