Skip to content

Commit

Permalink
Add dialect actions.json (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass authored Jun 21, 2024
1 parent 6a6466d commit d4a679b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/app/actions.json/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { NextResponse } from "next/server";

// To handle a GET request to /api
export async function GET() {
// Do whatever you want
return NextResponse.json(
{
rules: [
{
pathPattern: "/*/proposals/**",
apiPath: "https://actions.dialect.to/api/helium/*/proposals/**",
},
],
},
{ status: 200 }
);
}

0 comments on commit d4a679b

Please sign in to comment.