how can i use params with slash? #1817
Answered
by
thetutlage
sasha172017
asked this question in
Help
-
i need get param with slash, for example http://0.0.0.0/download/user/avatar/1603899939785.jpg, i need to receive string "avatar/1603899939785.jpg" how params, is it possible? |
Beta Was this translation helpful? Give feedback.
Answered by
thetutlage
Oct 29, 2020
Replies: 1 comment 1 reply
-
Here's how you can get it Route.get('/uploads/*', async ({ params }) => {
return Application.tmpPath(...params['*'])
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sasha172017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's how you can get it