2024-02-26 02:21:00 +03:00
|
|
|
from logging import NOTSET, DEBUG, INFO, WARNING, ERROR, CRITICAL
|
|
|
|
from server.urlhandler import path
|
2024-02-25 01:42:17 +03:00
|
|
|
|
2024-06-04 17:25:11 +03:00
|
|
|
import testmod
|
2024-02-25 01:42:17 +03:00
|
|
|
|
2023-12-29 02:13:10 +03:00
|
|
|
SETUP = {
|
2024-02-26 02:21:00 +03:00
|
|
|
"setup": {
|
|
|
|
"log_level": DEBUG
|
|
|
|
},
|
2023-12-29 02:13:10 +03:00
|
|
|
"server": {
|
|
|
|
"port": 8080,
|
|
|
|
}
|
|
|
|
}
|
2024-02-25 01:42:17 +03:00
|
|
|
|
|
|
|
urls = [
|
|
|
|
path("/", "static-file", "index.html"),
|
2024-02-26 02:21:00 +03:00
|
|
|
path("/func", "function", testmod.work)
|
2024-02-25 01:42:17 +03:00
|
|
|
]
|