Hello,
Player @SpeedBlock#6687 send me this problem.
In HTML you can use:
<link rel="stylesheet" href="style.css">
This go to yourpage:yourport/style.css
But when you have websk code not automaticity return file. So my proposition:
When you go on page: yourpage:yourport/files/style.css it will automaticity return file. You don't need add special code for returning file. I think this is good idea, because in simple examples you can need it...
Remeber, in files "Access-Control-Allow-Origin" must be set to "FALSE"
When we will add config.yml we can add some true/false and prefix like /files.
For people that need easy fix:if the path starts with "/style.css":return the file "style.css"
Hello, Player @SpeedBlock#6687 send me this problem.
In HTML you can use:
<link rel="stylesheet" href="style.css">
This go toyourpage:yourport/style.css
But when you have websk code not automaticity return file. So my proposition:
When you go on page:
yourpage:yourport/files/style.css
it will automaticity return file. You don't need add special code for returning file. I think this is good idea, because in simple examples you can need it... Remeber, in files "Access-Control-Allow-Origin" must be set to "FALSE"When we will add
config.yml
we can add sometrue/false
and prefix like/files
.For people that need easy fix:
if the path starts with "/style.css":
return the file "style.css"