new-personal-site/pages/api/coderank-code-server-auth.ts

14 lines
309 B
TypeScript
Raw Normal View History

2025-01-05 06:25:38 +00:00
import type { NextApiRequest, NextApiResponse } from "next";
type Data = {
msg: string;
};
export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
2025-01-05 06:59:10 +00:00
console.log("Coderank Auth Request Received!");
2025-01-05 06:25:38 +00:00
res.status(200).json({ msg: "Authentication Successful!" });
}