mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:01:09 +02:00
refactor(credits): route credit calls to mana-credits service
Update consumers to call the new standalone mana-credits service instead of the credit endpoints embedded in mana-core-auth. Changes: - CreditClientService: Add getCreditsUrl() reading MANA_CREDITS_URL (falls back to MANA_CORE_AUTH_URL for backward compatibility). All credit calls now use /api/v1/internal/* endpoints. - BetterAuthService: Replace direct DB inserts for credit balance and guild pool init with HTTP calls to mana-credits internal API. Replace local gift redemption with HTTP call. - .env.development: Add MANA_CREDITS_URL=http://localhost:3060 - CLAUDE.md: Add mana-credits to services list Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
64f7f768eb
commit
b0009c200b
4 changed files with 59 additions and 33 deletions
|
|
@ -23,7 +23,9 @@ PUBLIC_GLITCHTIP_DSN=
|
|||
|
||||
# Mana Core Auth Service
|
||||
MANA_CORE_AUTH_URL=http://localhost:3001
|
||||
# Service key for bot-to-auth communication (Matrix-SSO-Link)
|
||||
# Mana Credits Service
|
||||
MANA_CREDITS_URL=http://localhost:3060
|
||||
# Service key for service-to-service communication
|
||||
MANA_CORE_SERVICE_KEY=dev-service-key-for-bot-sso-2024
|
||||
|
||||
# WebAuthn / Passkeys (localhost for dev, mana.how for production)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue