Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): allow toggling timers and clearing intervals #2396

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

dennisrijsdijk
Copy link
Contributor

Description of the Change

Add GET /timers/:timerId/:action which allows toggling, enabling and disabling the timer, and clearing the interval.
action can be one of "enable", "disable", "toggle" or "clear"

Applicable Issues

#2395

Testing

Ensured that errors are still returned for an invalid timer ID, that errors are returned for an invalid action and that the toggle, enable, disable and clear functions work properly.

@zunderscore zunderscore merged commit 8ffd5db into crowbartools:v5 Feb 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants