diff --git a/controllers/quizController.js b/controllers/quizController.js index 093ee49..2d809fb 100644 --- a/controllers/quizController.js +++ b/controllers/quizController.js @@ -1,4 +1,4 @@ -import {generateBlanksQuiz, generateQuizQuestions, generateQuizVideo} from "../services/quizService.js"; +import {generateQuizQuestions} from "../services/quizService.js"; import {prisma} from "../config/prismaClient.js"; const welcome = async (req, res) => { diff --git a/routes/historyRoutes.js b/routes/historyRoutes.js index 7db1df5..9cb066f 100644 --- a/routes/historyRoutes.js +++ b/routes/historyRoutes.js @@ -1,9 +1,5 @@ import {isAuthenticated} from "../middlewares/isAuthenticated.js"; -import { - quizHistory, - userHistory, - deleteHistory -} from '../controllers/historyController.js'; +import {quizHistory, userHistory} from '../controllers/historyController.js'; export default (app) => { app.get('/quizzes', isAuthenticated, userHistory); diff --git a/routes/quizRoutes.js b/routes/quizRoutes.js index 1a9be2e..1ed1a8b 100644 --- a/routes/quizRoutes.js +++ b/routes/quizRoutes.js @@ -1,9 +1,4 @@ -import { - welcome, - getQuiz, - getQuizVideo, - saveQuizResults, getBlanksQuiz -} from '../controllers/quizController.js'; +import {getQuiz, saveQuizResults, welcome} from '../controllers/quizController.js'; import {isAuthenticated} from "../middlewares/isAuthenticated.js"; export default (app) => { diff --git a/src/amplifyconfiguration.json b/src/amplifyconfiguration.json new file mode 100644 index 0000000..ff802c6 --- /dev/null +++ b/src/amplifyconfiguration.json @@ -0,0 +1,10 @@ +{ + "aws_project_region": "eu-north-1", + "aws_cloud_logic_custom": [ + { + "name": "intelliqBE", + "endpoint": "https://b18dqiu64a.execute-api.eu-north-1.amazonaws.com/dev", + "region": "eu-north-1" + } + ] +} \ No newline at end of file diff --git a/src/aws-exports.js b/src/aws-exports.js new file mode 100644 index 0000000..048e661 --- /dev/null +++ b/src/aws-exports.js @@ -0,0 +1,16 @@ +/* eslint-disable */ +// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten. + +const awsmobile = { + "aws_project_region": "eu-north-1", + "aws_cloud_logic_custom": [ + { + "name": "intelliqBE", + "endpoint": "https://b18dqiu64a.execute-api.eu-north-1.amazonaws.com/dev", + "region": "eu-north-1" + } + ] +}; + + +export default awsmobile;