10 lines
334 B
TypeScript
10 lines
334 B
TypeScript
|
|
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);
|
||
|
|
});
|