You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
483 B
19 lines
483 B
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"MY_SERVER": {
|
|
"listen": [":3001"],
|
|
"routes": [
|
|
{
|
|
"handle": {
|
|
"handler": "starlark",
|
|
"script": "def setup(r):\n\t# create some middlewares specific to this request\n\ttemplates = loadModule('http.handlers.templates', {'include_root': './includes'})\n\tmidChain = execute([templates])\n\ndef serveHTTP (rw, r):\n\trw.Write('Hello world, from Starlark!')\n"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|