new dashboard route

This commit is contained in:
daniel31x13
2024-06-26 17:59:23 -04:00
parent c216a92474
commit 586074ef43
3 changed files with 151 additions and 1 deletions
+4 -1
View File
@@ -3,7 +3,10 @@ import { LinkRequestQuery } from "@/types/global";
import getDashboardData from "@/lib/api/controllers/dashboard/getDashboardData";
import verifyUser from "@/lib/api/verifyUser";
export default async function links(req: NextApiRequest, res: NextApiResponse) {
export default async function dashboard(
req: NextApiRequest,
res: NextApiResponse
) {
const user = await verifyUser({ req, res });
if (!user) return;