Skip to content

Commit

Permalink
fix: remove _ before sending folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
SingpassAuth committed Mar 3, 2021
1 parent 5980779 commit b78ca35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/folders.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function listAllFolderContent (req, res, next) {
const collectionPageType = new CollectionPageType(folder.slice(1))
IsomerFile.setFileType(collectionPageType)
const { sha, content } = await IsomerFile.read('collection.yml')
return { name: folder, sha, content }
return { name: folder.slice(1), sha, content }
})

res.status(200).json({ allFolderContent })
Expand Down

0 comments on commit b78ca35

Please sign in to comment.