Implements route for '/:id'
Dynamically set parent_id and small tweak to getFiles()