jensjeflensje / websk

Create websites using Skript!
MIT License
9 stars 4 forks source link

Html css file #30

Closed Norbiros closed 2 years ago

Norbiros commented 2 years ago

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"