Add service and provider for Teams

This commit is contained in:
2026-03-10 15:59:03 +01:00
parent ea45d74c0f
commit 3b8209225e
7 changed files with 295 additions and 20 deletions

View File

@@ -1,9 +1,9 @@
import 'dart:convert';
import 'package:frontend_splatournament_manager/main.dart';
import 'package:http/http.dart' as http;
class AuthService {
static const String baseUrl = "http://10.0.2.2:3000";
final String baseUrl = SplatournamentApp.baseUrl;
Future<Map<String, dynamic>> register(String username, String password) async {
final response = await http.post(
Uri.parse('$baseUrl/register'),