Skip to content
Snippets Groups Projects
Commit b9a3bd6e authored by Nicolas Schmid's avatar Nicolas Schmid
Browse files

feat: add reset endpoint

parent 71cf07ae
Branches bedretto-environment
No related tags found
No related merge requests found
Pipeline #3050 passed
REDIS_PASS=secret
REDIS_PASSWORD=secret
REDIS_HOST=secret
REDIS_PORT=secret
\ No newline at end of file
......@@ -48,3 +48,9 @@ def increase():
def decrease():
decrease_counter()
return f"<p>Counter: {r.get('counter')}</p>"
@app.route("/reset")
def reset():
r.set('counter', 0)
return f"<p>Counter: {r.get('counter')}</p>"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment