Skip to content

Conversation

@xierongchuan
Copy link
Owner

@xierongchuan xierongchuan commented Oct 29, 2025

Reverts xierongchuan/TaskMateTelegramBot#25


Summary by cubic

Reverts the previous settings endpoint change and restores the intended API: POST for shift-config and new bot-config endpoints, with Swagger updated. This brings back bot config read/write and aligns routes, validation, and role guards.

  • New Features
    • Added GET /api/v1/settings/bot-config to fetch bot and shift settings.
    • Added POST /api/v1/settings/bot-config to update bot and optional shift fields.
    • Switched /api/v1/settings/shift-config to POST; kept manager/owner role guard.
    • Updated swagger.yaml to document the above endpoints and request/response shapes.

@xierongchuan xierongchuan merged commit 9afc27b into main Oct 29, 2025
2 checks passed
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

@xierongchuan xierongchuan deleted the revert-25-issue-24-3663c79c branch November 5, 2025 12:59
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.

1 participant