cn-py-serv/config.py
Иван Солнцев 887e8da01b Add functional to send static files
Add
- internal project file iterator function
- path function to locate user files (first allocate as static-files)
- primitive HTML page files for demonstrate server functional

Change
- Response class as iterator
- code for send response to client
2024-02-25 01:42:17 +03:00

13 lines
190 B
Python

from server.url import path
SETUP = {
"server": {
"port": 8080,
}
}
urls = [
path("/", "static-file", "index.html"),
path("/template", "template", "index.html")
]