get folder by id

This commit is contained in:
Maidul Islam
2023-05-08 21:01:26 -04:00
parent 69fa4a80c5
commit 43e61c94f0
2 changed files with 19 additions and 1 deletions
@@ -86,4 +86,12 @@ export const deleteFolder = async (req: Request, res: Response) => {
}
res.send()
}
export const getFolderById = async (req: Request, res: Response) => {
const { folderId } = req.params
const folder = await Folder.findById(folderId)
res.send({ folder })
}