Skip to content

Commit

Permalink
etti
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Feb 1, 2024
1 parent 43a366b commit b5fe61f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions ui/app/api/mirrors/cdc/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { UCreateMirrorResponse } from '@/app/dto/MirrorsDTO';
import { CreateCDCFlowRequest, CreateCDCFlowResponse } from '@/grpc_generated/route';
import {
CreateCDCFlowRequest,
CreateCDCFlowResponse,
} from '@/grpc_generated/route';
import { GetFlowHttpAddressFromEnv } from '@/rpc/http';

export async function POST(request: Request) {
Expand All @@ -12,10 +15,13 @@ export async function POST(request: Request) {
createCatalogEntry: true,
};
try {
const createStatus: CreateCDCFlowResponse = await fetch(`${flowServiceAddr}/v1/flows/cdc/create`, {
method: 'POST',
body: JSON.stringify(req),
}).then((res) => {
const createStatus: CreateCDCFlowResponse = await fetch(
`${flowServiceAddr}/v1/flows/cdc/create`,
{
method: 'POST',
body: JSON.stringify(req),
}
).then((res) => {
return res.json();
});

Expand Down

0 comments on commit b5fe61f

Please sign in to comment.