Skip to content

Commit 4ea4fa2

Browse files
committed
chore(milestone-2): Streamline code imports
Signed-off-by: SeeuSim <[email protected]>
1 parent 3ba942e commit 4ea4fa2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

backend/question/src/controller/question-controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import {
44
getQuestionDetailsService,
55
getRandomQuestionService,
66
searchQuestionsByTitleService,
7-
} from '../services/get/index';
8-
import {
7+
} from '@/services/get/index';
8+
import type {
99
IGetQuestionsPayload,
1010
IGetQuestionPayload,
1111
IGetRandomQuestionPayload,
12-
} from '../services/get/types';
12+
} from '@/services/get/types';
1313

1414
export const getQuestions = async (req: Request, res: Response): Promise<Response> => {
1515
const payload: IGetQuestionsPayload = {

backend/question/src/routes/question-routes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { Router } from 'express';
2+
23
import {
34
searchQuestionsByTitle,
45
getQuestions,
56
getQuestionDetails,
67
getRandomQuestion,
7-
} from '../controller/question-controller';
8+
} from '@/controller/question-controller';
89

910
const router = Router();
1011

0 commit comments

Comments
 (0)