Skip to content

Commit

Permalink
Merge pull request #30 from HyunsDev:develop
Browse files Browse the repository at this point in the history
fix: API 엔드포인트 주소 오류 수정 v1.0.30
  • Loading branch information
HyunsDev authored Mar 10, 2024
2 parents 4d45075 + 7897181 commit e0a7f3a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unibook-client",
"version": "1.0.29",
"version": "1.0.30",
"repository": "https://github.com/HyunsDev/unibook-client.git",
"author": "혀느현스 <[email protected]>",
"license": "Unlicense",
Expand Down
12 changes: 6 additions & 6 deletions src/endpoint/book/section/block-comment/notification/endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Endpoint } from "endpoint-client";

/**
* GET /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notification
* GET /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notifications
* 블록 댓글 알림을 활성화했는지 조회합니다.
*/
export const GetIsBlockCommentNotificationOn: Endpoint<
Expand All @@ -10,7 +10,7 @@ export const GetIsBlockCommentNotificationOn: Endpoint<
> = {
method: "GET",
path: (e) =>
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notification`,
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notifications`,
pathParams: ["bookId", "sectionId", "blockCommentId"],
};
export type GetBlockCommentNotificationReqPath = {
Expand All @@ -24,7 +24,7 @@ export type GetBlockCommentNotificationRes = {
};

/**
* POST /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notification
* POST /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notifications
* 블록 댓글 알림을 활성화합니다.
*/
export const SetBlockCommentNotificationOn: Endpoint<
Expand All @@ -33,7 +33,7 @@ export const SetBlockCommentNotificationOn: Endpoint<
> = {
method: "POST",
path: (e) =>
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notification`,
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notifications`,
pathParams: ["bookId", "sectionId", "blockCommentId"],
};
export type SetBlockCommentNotificationOnReqPath = {
Expand All @@ -46,7 +46,7 @@ export type SetBlockCommentNotificationOnReq =
export type SetBlockCommentNotificationOnRes = {};

/**
* DELETE /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notification
* DELETE /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notifications
* 블록 댓글 알림을 비활성화합니다.
*/
export const SetBlockCommentNotificationOff: Endpoint<
Expand All @@ -55,7 +55,7 @@ export const SetBlockCommentNotificationOff: Endpoint<
> = {
method: "DELETE",
path: (e) =>
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notification`,
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notifications`,
pathParams: ["bookId", "sectionId", "blockCommentId"],
};
export type SetBlockCommentNotificationOffReqPath = {
Expand Down
4 changes: 2 additions & 2 deletions src/endpoint/user/notification/device/endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Endpoint } from "endpoint-client";

/**
* POST /users/:userId/notification/devices
* POST /users/:userId/notifications/devices
* 디바이스를 등록합니다.
*/
export const RegisterUserNotificationDevice: Endpoint<
RegisterUserNotificationDeviceReq,
RegisterUserNotificationDeviceRes
> = {
method: "POST",
path: (e) => `/users/${e.userId}/notification/devices`,
path: (e) => `/users/${e.userId}/notifications/devices`,
pathParams: ["userId"],
bodyParams: ["token"],
};
Expand Down

0 comments on commit e0a7f3a

Please sign in to comment.