aboutsummaryrefslogtreecommitdiffstats
path: root/web/templates/test.conf
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates/test.conf')
-rw-r--r--web/templates/test.conf17
1 files changed, 0 insertions, 17 deletions
diff --git a/web/templates/test.conf b/web/templates/test.conf
deleted file mode 100644
index ce2fe0d..0000000
--- a/web/templates/test.conf
+++ /dev/null
@@ -1,17 +0,0 @@
-{# Fetches something simple from gondul #}
-{# Query parameters: ?switch=e1-1 #}
-
-{# Check if ?switch option is given#}
-{% if not options["switch"] %}
- {# pretty print public/switches endpoint#}
- {{ objects["public/switches"] | pprint }}
-{% else %}
- {# sets sw variable using the query parameter #}
- {% set sw = options["switch"] %}
-{% endif %}
-{% if sw %}
- {# find the correct switch from public/switches api endpoint using query paramter#}
- {% set switch = objects["public/switches"].switches[sw] %}
- {# pretty print info in api #}
- {{ switch | tojson }}
-{% endif %}