Skip to content

Commit

Permalink
feat: add Dockerfile, Cypress, code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
aeworxet committed May 13, 2024
1 parent a9e5272 commit a59fa04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions apps/studio-next/src/app/api/v1/generate/route.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { NextResponse } from 'next/server';

export async function POST(request: Request) {
const response = await request.json();
return new NextResponse(`route POST -> ${JSON.stringify(response)}`, {status: 201});
}
2 changes: 1 addition & 1 deletion apps/studio-next/src/services/server-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface ServerAPIProblem {
}

export class ServerAPIService extends AbstractService {
private serverPath = 'https://api.asyncapi.com/v1';
private serverPath = 'http://localhost:3001/api/v1';

async generate(data: {
asyncapi: string | Record<string, any>,
Expand Down

0 comments on commit a59fa04

Please sign in to comment.