Commit 19424b6d authored by Kristian Tan's avatar Kristian Tan

Reroute toggle endpoloint to avoid favicon calls

parent 84bdf0dd
......@@ -16,9 +16,9 @@
{% for pin in pins %}
<p>{{ pins[pin].name }} :
{% if pins[pin].state == true %}
(<a href="/{{pin}}">turn off</a>)
(<a href="/toggle/{{pin}}">turn off</a>)
{% else %}
(<a href="/{{pin}}">turn on</a>)
(<a href="/toggle/{{pin}}">turn on</a>)
{% endif %}
</p>
{% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment