Closed maarlo closed 2 years ago
Hello @maarlo, thanks for using EmbedIO!
Although I surely appreciate the effort you put in identifying the issue and providing a possible solution, I'm closing this issue for the following reasons:
Please take a look at the solution proposed in #490 and tell us what you think.
Hello @rdeago, thanks for your fast repply!
Yes, #490 is a better solution.
If serving both backend and frontend in the same server and creating the frontend with a javascript framework (like React), serving only the static files in basepath is not enough when the frontend has its own routing.
The server must serve static index.html file for all the unknown routes and files.
As solution, I propose modifying FileSystemProvider adding
Instead of
To serve the files it's enough with adding
What do you think about?