mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 01:39:40 +02:00
🐛 fix(bot-services): use correct double-prefix path for matrix-session API
mana-core-auth has a double prefix (/api/v1/api/v1/auth) due to global prefix + controller prefix. Update SessionService to use the correct paths. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c54ff859d6
commit
7e1e8e9378
1 changed files with 4 additions and 2 deletions
|
|
@ -137,8 +137,9 @@ export class SessionService {
|
|||
}
|
||||
|
||||
try {
|
||||
// Note: mana-core-auth has double prefix due to global prefix + controller prefix
|
||||
const response = await fetch(
|
||||
`${this.authUrl}/api/v1/auth/matrix-session/${encodeURIComponent(matrixUserId)}`,
|
||||
`${this.authUrl}/api/v1/api/v1/auth/matrix-session/${encodeURIComponent(matrixUserId)}`,
|
||||
{
|
||||
headers: {
|
||||
'X-Service-Key': this.serviceKey,
|
||||
|
|
@ -247,7 +248,8 @@ export class SessionService {
|
|||
email: string
|
||||
): Promise<void> {
|
||||
try {
|
||||
const response = await fetch(`${this.authUrl}/api/v1/auth/matrix-user-links`, {
|
||||
// Note: mana-core-auth has double prefix due to global prefix + controller prefix
|
||||
const response = await fetch(`${this.authUrl}/api/v1/api/v1/auth/matrix-user-links`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue