Skip to content

How to expand more routes? #7964

Answered by Jermolene
oeyoews asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @oeyoews for security reasons you would want to avoid exposing any API that allows uncontrolled access the filesystem.

I think your code would fail at the moment because the test for the whether the filename is inside the wiki files folder will fail.

Another point to watch is that the assignment to customPath is dangerous because it will be executed at the time the module is required, not when the handler function is called. That makes it hard to predict the execution order, and you may find that the configuration tiddler is not available.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oeyoews
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants