summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/starlarkmw/example
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/starlarkmw/example')
-rw-r--r--modules/caddyhttp/starlarkmw/example/caddy.json19
1 files changed, 0 insertions, 19 deletions
diff --git a/modules/caddyhttp/starlarkmw/example/caddy.json b/modules/caddyhttp/starlarkmw/example/caddy.json
deleted file mode 100644
index 9479d17..0000000
--- a/modules/caddyhttp/starlarkmw/example/caddy.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "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', {'file_root': './includes'})\n\tmidChain = execute([templates])\n\ndef serveHTTP (rw, r):\n\trw.Write('Hello world, from Starlark!')\n"
- }
- }
- ]
- }
- }
- }
- }
-} \ No newline at end of file