Skip to content

Commit 10b239f

Browse files
authored
Merge pull request #176 from vitruv-tools/pro_url
Update API base URLs to new endpoint for consistency across services
2 parents 6dfa27c + d95dc46 commit 10b239f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

AUTHENTICATION.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The authentication system provides:
1313
## API Endpoints
1414

1515
### Sign Up
16-
- **URL**: `POST https://fe3ab829-d558-4834-afcf-6ed7ca440ca4.ka.bw-cloud-instance.org/api/v1/users/sign-up`
16+
- **URL**: `POST https://mwa.sdq.kastel.kit.edu/api/v1/users/sign-up`
1717
- **Request Body**:
1818
```json
1919
{
@@ -34,7 +34,7 @@ The authentication system provides:
3434
```
3535

3636
### Sign In
37-
- **URL**: `POST https://fe3ab829-d558-4834-afcf-6ed7ca440ca4.ka.bw-cloud-instance.org/api/v1/users/login`
37+
- **URL**: `POST https://mwa.sdq.kastel.kit.edu/api/v1/users/login`
3838
- **Request Body**:
3939
```json
4040
{
@@ -57,7 +57,7 @@ The authentication system provides:
5757
```
5858

5959
### Token Refresh
60-
- **URL**: `POST https://fe3ab829-d558-4834-afcf-6ed7ca440ca4.ka.bw-cloud-instance.org/api/v1/users/access-token/by-refresh-token`
60+
- **URL**: `POST https://mwa.sdq.kastel.kit.edu/api/v1/users/access-token/by-refresh-token`
6161
- **Request Body**:
6262
```json
6363
{
@@ -235,7 +235,7 @@ function TokenManagement() {
235235
### Backend URL
236236
The backend URL is configured in `src/services/auth.ts`:
237237
```typescript
238-
private static readonly LOCAL_API_BASE_URL = 'https://fe3ab829-d558-4834-afcf-6ed7ca440ca4.ka.bw-cloud-instance.org';
238+
private static readonly LOCAL_API_BASE_URL = 'https://mwa.sdq.kastel.kit.edu';
239239
```
240240

241241
### Token Storage
@@ -269,7 +269,7 @@ The system provides comprehensive error handling:
269269

270270
To test the authentication system:
271271

272-
1. Ensure your backend server is running on `https://fe3ab829-d558-4834-afcf-6ed7ca440ca4.ka.bw-cloud-instance.org`
272+
1. Ensure your backend server is running on `https://mwa.sdq.kastel.kit.edu`
273273
2. Use the sign-up form to create a new account
274274
3. Use the sign-in form to authenticate
275275
4. Check the browser's developer tools to see stored tokens

src/services/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { FlowData } from '../types/flow';
33
import { ApiResponse, Vsum, VsumDetails } from '../types/vsum';
44

55
class ApiService {
6-
private readonly baseURL = 'https://fe3ab829-d558-4834-afcf-6ed7ca440ca4.ka.bw-cloud-instance.org';
6+
private readonly baseURL = 'https://mwa.sdq.kastel.kit.edu';
77

88
/**
99
* Extract error message from response text

src/services/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export interface User {
4444
}
4545

4646
export class AuthService {
47-
private static readonly API_BASE_URL = 'https://fe3ab829-d558-4834-afcf-6ed7ca440ca4.ka.bw-cloud-instance.org';
48-
private static readonly LOCAL_API_BASE_URL = 'https://fe3ab829-d558-4834-afcf-6ed7ca440ca4.ka.bw-cloud-instance.org';
47+
private static readonly API_BASE_URL = 'https://mwa.sdq.kastel.kit.edu';
48+
private static readonly LOCAL_API_BASE_URL = 'https://mwa.sdq.kastel.kit.edu';
4949
private static readonly CLIENT_ID = 'exit-normal-customer-mobile-app';
5050
private static readonly GRANT_TYPE = 'password';
5151

0 commit comments

Comments
 (0)