Open theboyknowsclass opened 6 months ago
You could - see https://github.com/deckerego/ampule/blob/main/examples/webserver/webpages.py as an example of how to retrieve files based on a GET request.
If you wanted to serve up a whole directory, you could create a handler from a base path (say static/
) and then look at the request
object to determine which file to serve.
is it possible to set it to serve plain html files from a '\static' directory say?