Cadastrando no banco

This commit is contained in:
Hugo Falcao
2022-04-17 22:41:01 -03:00
parent 2dde2de166
commit 373df29679
7 changed files with 3470 additions and 952 deletions

18
src/config/api.config.ts Normal file
View File

@@ -0,0 +1,18 @@
import environment from "../environments/environment";
function getBaseUrl() {
const { hostname } = window.location;
const { url } = environment;
let apiUrl = null;
// if (hostname === '') {
// apiUrl = url.prod;
// } else {
apiUrl = url.local;
// }
return apiUrl;
}
export default { getBaseUrl };