Skip to content

Commit

Permalink
Merge pull request #129 from gsainfoteam/migration-new-backend
Browse files Browse the repository at this point in the history
fix: change notice api endpoint
  • Loading branch information
2paperstar authored Nov 15, 2023
2 parents 22222f3 + 20b3501 commit a0bde84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_PUBLIC_API_BASE_URL=https://api.ziggle.gistory.me/
NEXT_PUBLIC_IDP_BASE_URL=https://idp.gistory.me/
NEXT_PUBLIC_IDP_CLIENT_ID=ziggle2023
NEXT_PUBLIC_IDP_REDIRECT_URI=https://stg.ziggle.gistory.me/api/login
NEXT_PUBLIC_IDP_REDIRECT_URI=https://ziggle.gistory.me/api/login
4 changes: 1 addition & 3 deletions src/api/notice/notice.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import dayjs from 'dayjs';

import { gql } from '@/generated';

import api from '..';
Expand Down Expand Up @@ -44,7 +42,7 @@ export interface Notices {
export const getAllNotices = async (
params: NoticePaginationParams & NoticeSearchParams = {},
) =>
api.get<Notices>('/notice/all', { params }).then(({ data }) => ({
api.get<Notices>('/notice', { params }).then(({ data }) => ({
...data,
list: data.list.map(({ imageUrl, ...notice }) => ({
...notice,
Expand Down

0 comments on commit a0bde84

Please sign in to comment.