Skip to content

Commit

Permalink
feat: fix syllabus app
Browse files Browse the repository at this point in the history
  • Loading branch information
TriptoAfsin committed Jul 18, 2023
1 parent 644e740 commit dc5bde0
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
let syllabus46 = {
topic: "Download",
url: "https://drive.google.com/file/d/1MncnGSZjCFeDW4rj4atEUGQ45YCoj6Xk/view"
}

module.exports = syllabus46;
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
let syllabus46 = [
{
dept: "All",
route: "app/syllabus/46/all"
},
]



module.exports = syllabus46;
16 changes: 15 additions & 1 deletion src/controllers/appController/appController.js
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,8 @@ let ttqcLabs = require('./academic/labReport/level2/subs/ttqc/ttqcLabs')

//syllabus
let syllabusBatch45 = require('./academic/syllabus/45/syllabusBatch45')
let syllabusBatch46 = require('./academic/syllabus/46/syllabusBatch46')
let syllabusBatch46All = require('./academic/syllabus/46/depts/allSyllabus46')
let syllabusBatch45Ae = require('./academic/syllabus/45/depts/ae45Syl')
let syllabusBatch45Fe = require('./academic/syllabus/45/depts/fe45Syl')
let syllabusBatch45Ye = require('./academic/syllabus/45/depts/ye45Syl')
Expand Down Expand Up @@ -5502,7 +5504,7 @@ let syllabusLevelFlow = (req, res) => {
},
{
batch: "46",
url: "https://drive.google.com/file/d/1di3DU0HRJZE-Kjihfr6UGS4y7qNWH7mF/view?usp=sharing"
route: "app/syllabus/45"
}
]);
};
Expand All @@ -5512,6 +5514,16 @@ let syllabusBatch45Flow = (req, res) => {
return res.send(syllabusBatch45);
};

let syllabusBatch46Flow = (req, res) => {
console.log(`🟠 App Platform : ${req.originalUrl} || IP: ${req.ip}`)
return res.send(syllabusBatch46);
};

let syllabusBatch46AllFlow = (req, res) => {
console.log(`🟠 App Platform : ${req.originalUrl} || IP: ${req.ip}`)
return res.send(syllabusBatch46All);
};

let syllabusBatch45AeFlow = (req, res) => {
console.log(`🟠 App Platform : ${req.originalUrl} || IP: ${req.ip}`)
return res.send(syllabusBatch45Ae);
Expand Down Expand Up @@ -6518,6 +6530,8 @@ module.exports = {

syllabusLevelFlow: syllabusLevelFlow,
syllabusBatch45Flow: syllabusBatch45Flow,
syllabusBatch46Flow: syllabusBatch46Flow,
syllabusBatch46AllFlow: syllabusBatch46AllFlow,
syllabusBatch45AeFlow: syllabusBatch45AeFlow,
syllabusBatch45FeFlow: syllabusBatch45FeFlow,
syllabusBatch45YeFlow: syllabusBatch45YeFlow,
Expand Down
2 changes: 2 additions & 0 deletions src/routes/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,8 @@ let initWebRoutes = (app) => {
//syllabus
router.get("/app/syllabus", appController.syllabusLevelFlow);
router.get("/app/syllabus/45", appController.syllabusBatch45Flow);
router.get("/app/syllabus/46", appController.syllabusBatch46Flow);
router.get("/app/syllabus/46/all", appController.syllabusBatch46AllFlow);
router.get("/app/syllabus/45/ae", appController.syllabusBatch45AeFlow);
router.get("/app/syllabus/45/ye", appController.syllabusBatch45YeFlow);
router.get("/app/syllabus/45/fe", appController.syllabusBatch45FeFlow);
Expand Down

0 comments on commit dc5bde0

Please sign in to comment.