Browse Source

instalando react-redux

master
JailtonAraujo 3 years ago
parent
commit
2eabf70bd8
2 changed files with 20 additions and 0 deletions
  1. +3
    -0
      first-app/src/environments.ts
  2. +17
    -0
      first-app/src/services/ClienteService.ts

+ 3
- 0
first-app/src/environments.ts View File

@ -0,0 +1,3 @@
export const Environments = {
URLApi: ""
}

+ 17
- 0
first-app/src/services/ClienteService.ts View File

@ -0,0 +1,17 @@
import { Environments } from "../environments"
const {URLApi} = Environments;
const findPaises = async () => {
const data = await fetch(`${URLApi}/paises/list`)
.then((res)=>res.json())
.catch((err)=>err);
return data;
}
export const ClienteServices = {
findPaises
}

Loading…
Cancel
Save