Files
pn-new-crm/src/app/api/v1/dashboard/forecast/route.ts

10 lines
334 B
TypeScript
Raw Normal View History

import { NextRequest, NextResponse } from 'next/server';
import { withAuth } from '@/lib/api/helpers';
import { getRevenueForecast } from '@/lib/services/dashboard.service';
export const GET = withAuth(async (req: NextRequest, ctx) => {
const result = await getRevenueForecast(ctx.portId);
return NextResponse.json(result);
});