🔧 refactor(plan): update imports to use .js extensions and secure delete route with admin auth

This commit is contained in:
abumahid
2026-04-26 19:10:56 +06:00
6 changed files with 19 additions and 8 deletions
@@ -7,6 +7,7 @@ const update_profile_into_db = async (req: Request) => {
const user = req?.user as JwtPayloadType;
const payload = req?.body;
const file = req?.file;
console.log(payload);
// check file and upload to cloud
if (file) {
const cloudRes = await uploadCloud(file);