MCPcopy
hub / github.com/Nutlope/self.so / GET

Function GET

app/api/resume/route.ts:14–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13// GET endpoint to retrieve resume
14export async function GET(): Promise<NextResponse<GetResumeResponse>> {
15 try {
16 const user = await currentUser();
17 if (!user) {
18 return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
19 }
20
21 const resume = await getResume(user.id);
22 return NextResponse.json({ resume });
23 } catch (error) {
24 console.error('Error retrieving resume:', error);
25 return NextResponse.json(
26 { error: 'Internal server error' },
27 { status: 500 },
28 );
29 }
30}
31
32// POST endpoint to store resume
33export async function POST(

Callers

nothing calls this directly

Calls 1

getResumeFunction · 0.90

Tested by

no test coverage detected