Skip to content

Commit

Permalink
AAAAAAAAAAAA
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyRAV committed Sep 15, 2024
1 parent 60b9ddf commit a0a7848
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion controllers/quizController.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down
6 changes: 1 addition & 5 deletions routes/historyRoutes.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
7 changes: 1 addition & 6 deletions routes/quizRoutes.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down
10 changes: 10 additions & 0 deletions src/amplifyconfiguration.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
16 changes: 16 additions & 0 deletions src/aws-exports.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit a0a7848

Please sign in to comment.