[MVPTN-80] deploy(Docker): Ajuste de API de requisição
This commit is contained in:
parent
9c0d58e745
commit
bbc22ab916
2 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ const nextConfig = {
|
|||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/api/:path*',
|
||||
source: '/api/v1/:path*',
|
||||
destination: 'http://api_saas_api_homologacao:8000/:path*', // backend interno
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ export default class API {
|
|||
|
||||
// Realiza a requisição
|
||||
const response = await fetch(
|
||||
`/${this.ApiSchema.prefix}${this.ApiSchema.endpoint}`,
|
||||
`${this.ApiSchema.endpoint}`,
|
||||
{
|
||||
method: _data.method,
|
||||
headers: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue