File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
lesson_03/quiz/src/quizzes Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { Module } from '@nestjs/common' ;
2
+ import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js' ;
3
+ import { AngelicaCQuiz } from './angelica_c_quiz.js' ;
2
4
import { AnotherQuiz } from './another_quiz.js' ;
3
5
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js' ;
4
6
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js' ;
@@ -11,6 +13,33 @@ import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
11
13
12
14
export const Quizzes = Symbol . for ( 'Quizzes' ) ;
13
15
16
+ // Add your quiz provider here.
17
+
18
+ const QUIZ_PROVIDERS = [
19
+ AnthonyMaysQuiz ,
20
+ YafiahAbdullahQuiz ,
21
+ AnotherQuiz ,
22
+ JosephCaballeroQuiz ,
23
+ OyeyemiJimohQuiz ,
24
+ ChigazoGrahamsQuiz ,
25
+ AmiyahJonesQuiz ,
26
+ LjMcwilliamsQuiz ,
27
+ ] ;
28
+
29
+ @Module ( {
30
+ providers : [
31
+ ...QUIZ_PROVIDERS ,
32
+ {
33
+ provide : Quizzes ,
34
+ useFactory : ( ...args ) => [ ...args ] ,
35
+ inject : QUIZ_PROVIDERS ,
36
+ } ,
37
+ ] ,
38
+ } )
39
+ export class QuizzesModule { }
40
+
41
+ export const Quizzes = Symbol . for ( 'Quizzes' ) ;
42
+
14
43
// Add your quiz provider here.
15
44
const QUIZ_PROVIDERS = [
16
45
AnthonyMaysQuiz ,
You can’t perform that action at this time.
0 commit comments