This commit is contained in:
payacom
2026-08-31 20:45:41 +03:30
parent fa9f23c61d
commit 3f416a7a60
367 changed files with 621895 additions and 6443 deletions

View File

@@ -0,0 +1,16 @@
const { CountryModel } = require('../../models/StateCity')
const getCountries = async (req, res, next) => {
try {
const countries = await CountryModel.find({}).sort({ name_fa: 1 })
res.status(200).json({
countries
})
} catch (err) {
res.status(500).send('Internal Server Error')
}
}
module.exports = {
getCountries
}