From cd359e44a987b2499256d698beda413d4d7ef5f2 Mon Sep 17 00:00:00 2001 From: amandesai01 Date: Mon, 28 Oct 2024 12:51:26 +0530 Subject: [PATCH] chore(api): restructure route dir --- server/api/{application.post.ts => application/index.post.ts} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename server/api/{application.post.ts => application/index.post.ts} (94%) diff --git a/server/api/application.post.ts b/server/api/application/index.post.ts similarity index 94% rename from server/api/application.post.ts rename to server/api/application/index.post.ts index ff71fb6..d2da71a 100644 --- a/server/api/application.post.ts +++ b/server/api/application/index.post.ts @@ -1,7 +1,7 @@ import { applicationCreateSchema } from '~~/shared/schemas/application'; -import authenticateRequest from '../utils/auth'; import { and, count, eq, sql } from 'drizzle-orm'; -import { jobPostingsTable, postingApplicantsTable } from '../db/schema'; +import authenticateRequest from '~~/server/utils/auth'; +import { jobPostingsTable, postingApplicantsTable } from '~~/server/db/schema'; export default defineEventHandler(async (event) => { const session = await authenticateRequest(event);