import'package:flutter/foundation.dart';import'package:http/http.dart'ashttp;import'package:primer_practica/environments/urls.dart'asapi;classArticlesApi{Future<Map<String,dynamic>>getArticles()async{// Usa la constante `apiBaseUrl` de `urls.dart` para construir la URLStringurl='${api.apiApp}/articulo?offset=0&max=100';if(kDebugMode){print('Url -> $url');}try{finalresp=awaithttp.get(Uri.parse(url));return{"statusCode":resp.statusCode,"body":resp.body};}catch(e){return{"statusCode":501,"body":'$e'};}}}