first commit

This commit is contained in:
Mojtaba Khorshidkolah
2026-03-05 09:39:35 +03:30
commit a9bd7e890a
9 changed files with 2195 additions and 0 deletions

23
config/controller.js Normal file
View File

@@ -0,0 +1,23 @@
const ServiceHandler = require('./service')
class ControllerHandlerClass {
async getData(req,res,next){
try {
const data = await ServiceHandler.getData();
return res.status(200).json({
status:200,
data,
message:"Ok"
})
} catch (error) {
console.log(error)
next('Server Error ')
}
}
}
const ControllerHandler = new ControllerHandlerClass();
module.exports =ControllerHandler;