diff --git a/backend/src/controllers/user/retrieveAnnouncements.ts b/backend/src/controllers/user/retrieveAnnouncements.ts index 9a533300..03a972ae 100644 --- a/backend/src/controllers/user/retrieveAnnouncements.ts +++ b/backend/src/controllers/user/retrieveAnnouncements.ts @@ -1,8 +1,8 @@ import { Request, Response } from "express"; -import { announcementRepository } from "../../repositories/anouncementRepository.js"; +import { z } from "zod"; import { namedNonEmptyStringType } from "../../../../lib/src/zodFieldTypes.js"; import { validate } from "../../middleware/zodValidateRequest.js"; -import { z } from "zod"; +import { announcementRepository } from "../../repositories/anouncementRepository.js"; const announcementSchema = z.object({ body: z.object({ title: namedNonEmptyStringType("title"), diff --git a/backend/src/routers/userRouter.ts b/backend/src/routers/userRouter.ts index 127ed21c..6171d65b 100644 --- a/backend/src/routers/userRouter.ts +++ b/backend/src/routers/userRouter.ts @@ -12,11 +12,11 @@ import { getUserDetails, getUserDetailsValidator, } from "../controllers/user/getUserDetails.js"; -import { authenticate } from "../middleware/auth.js"; import { getAllAnnouncements, getAnnouncementValidator, } from "../controllers/user/retrieveAnnouncements.js"; +import { authenticate } from "../middleware/auth.js"; const userRouter = express.Router();