Update routes.php to add fragments route

Changes made to accommodate the fragments route. Later I will investigate whether the array format is already in correct structure to be change into json format that is required.