How to get link to file from server on client side

Hello. I have some resources in folder inside my theia extension. I want to get link to this folder and links to files on client side. How can i do this?

@MoHcmp thank you for the discussion, do you mind clarifying a bit what you want to do? Are you attempting to import files from node (backend) in the browser (frontend or client)?

Hello. Yes, i tried to do this.

Have found out how to do this. I used webpack file-loader. When using file-loader and importing files i get public link to these files which can be used to download them.

Have one more question now. How can i get link to file from workspace on client side (browser frontend)? (want to get link which can be used to download file from workspace)