Skip to content

Commit

Permalink
update missing urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Nov 15, 2024
1 parent d295844 commit e10945c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/container/src/layouts/AppBar/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const externalNavigationItems = [
{
title: 'Snapshot da Matrícula',
icon: 'mdi-open-in-new',
url: 'https://api.ufabcnext.com/snapshot',
url: 'https://ufabc-matricula-snapshot.vercel.app',
},
{
title: 'Grupos no WhatsApp',
Expand Down
2 changes: 1 addition & 1 deletion apps/container/src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import { historiesGraduations } from './performance';
import { comments, subject, subjectSearch, teacher, teacherSearch } from './reviews';

const baseUrl = 'https://api.ufabcnext.com/v1';
const baseUrl = 'https://api.v2.ufabcnext.com/v2';

export const handlers = [
http.get(`${baseUrl}/users/info`, () => HttpResponse.json(user)),
Expand Down
4 changes: 2 additions & 2 deletions apps/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
<li class="nav-item">
<a
class="nav-link js-scroll-trigger"
href="https://api.ufabcnext.com/snapshot"
href="https://ufabc-matricula-snapshot.vercel.app"
>Snapshot</a
>
</li>
Expand Down Expand Up @@ -894,7 +894,7 @@ <h4>Criador da Extensão da Matrícula</h4>
return 'https://api.v2.ufabcnext.com/login/google';
} else {
// production url
return 'https://api.ufabcnext.com/connect/google';
return 'https://api.v2.ufabcnext.com/login/google';
}
};
var template = $('#stats-counter').html();
Expand Down
2 changes: 1 addition & 1 deletion apps/static/privacidade.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
<li class="nav-item">
<a
class="nav-link js-scroll-trigger"
href="https://api.ufabcnext.com/snapshot"
href="https://ufabc-matricula-snapshot.vercel.app"
>Snapshot</a
>
</li>
Expand Down
2 changes: 1 addition & 1 deletion apps/static/termos-de-uso.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
<li class="nav-item">
<a
class="nav-link js-scroll-trigger"
href="https://api.ufabcnext.com/snapshot"
href="https://ufabc-matricula-snapshot.vercel.app"
>Snapshot</a
>
</li>
Expand Down
6 changes: 3 additions & 3 deletions packages/services/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { authStore } from 'stores';

const resolveEndpoint = (env?: string) =>
({
development: 'http://localhost:5000/v2',
development: 'http://localhost:5000',
staging: 'https://api.v2.ufabcnext.com/v2',
production: 'https://api.ufabcnext.com/v1',
})[env!] || 'https://api.v2.ufabcnext.com/v2';
production: 'https://api.v2.ufabcnext.com/v2',
})[env!] || 'http://localhost:5000';

export const api = axios.create({
baseURL: resolveEndpoint(process.env.VUE_APP_MF_ENV),
Expand Down

0 comments on commit e10945c

Please sign in to comment.