Interface de connexion avec connexion réussie au serveur
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Urls {
|
||||
static const String baseUrl = 'http://localhost:8085';
|
||||
static const String baseUrl = 'http://192.168.1.145:8085';
|
||||
// static const String login = baseUrl + 'auth/login';
|
||||
// static const String events = baseUrl + 'events';
|
||||
// Ajoute d'autres URLs ici
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
class ServerException implements Exception {}
|
||||
|
||||
class CacheException implements Exception {}
|
||||
|
||||
class AuthenticationException implements Exception {
|
||||
final String message;
|
||||
|
||||
AuthenticationException(this.message);
|
||||
|
||||
@override
|
||||
String toString() => 'AuthenticationException: $message';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user