Skip to content

Commit 7897181

Browse files
committed
fix: API 엔드포인트 주소 오류 수정 v1.0.30
1 parent d09ac3b commit 7897181

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unibook-client",
3-
"version": "1.0.29",
3+
"version": "1.0.30",
44
"repository": "https://github.com/HyunsDev/unibook-client.git",
55
"author": "혀느현스 <[email protected]>",
66
"license": "Unlicense",

src/endpoint/book/section/block-comment/notification/endpoint.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Endpoint } from "endpoint-client";
22

33
/**
4-
* GET /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notification
4+
* GET /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notifications
55
* 블록 댓글 알림을 활성화했는지 조회합니다.
66
*/
77
export const GetIsBlockCommentNotificationOn: Endpoint<
@@ -10,7 +10,7 @@ export const GetIsBlockCommentNotificationOn: Endpoint<
1010
> = {
1111
method: "GET",
1212
path: (e) =>
13-
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notification`,
13+
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notifications`,
1414
pathParams: ["bookId", "sectionId", "blockCommentId"],
1515
};
1616
export type GetBlockCommentNotificationReqPath = {
@@ -24,7 +24,7 @@ export type GetBlockCommentNotificationRes = {
2424
};
2525

2626
/**
27-
* POST /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notification
27+
* POST /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notifications
2828
* 블록 댓글 알림을 활성화합니다.
2929
*/
3030
export const SetBlockCommentNotificationOn: Endpoint<
@@ -33,7 +33,7 @@ export const SetBlockCommentNotificationOn: Endpoint<
3333
> = {
3434
method: "POST",
3535
path: (e) =>
36-
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notification`,
36+
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notifications`,
3737
pathParams: ["bookId", "sectionId", "blockCommentId"],
3838
};
3939
export type SetBlockCommentNotificationOnReqPath = {
@@ -46,7 +46,7 @@ export type SetBlockCommentNotificationOnReq =
4646
export type SetBlockCommentNotificationOnRes = {};
4747

4848
/**
49-
* DELETE /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notification
49+
* DELETE /books/:bookId/sections/:sectionId/block-comments/:blockCommentId/notifications
5050
* 블록 댓글 알림을 비활성화합니다.
5151
*/
5252
export const SetBlockCommentNotificationOff: Endpoint<
@@ -55,7 +55,7 @@ export const SetBlockCommentNotificationOff: Endpoint<
5555
> = {
5656
method: "DELETE",
5757
path: (e) =>
58-
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notification`,
58+
`/books/${e.bookId}/sections/${e.sectionId}/block-comments/${e.blockCommentId}/notifications`,
5959
pathParams: ["bookId", "sectionId", "blockCommentId"],
6060
};
6161
export type SetBlockCommentNotificationOffReqPath = {

src/endpoint/user/notification/device/endpoint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { Endpoint } from "endpoint-client";
22

33
/**
4-
* POST /users/:userId/notification/devices
4+
* POST /users/:userId/notifications/devices
55
* 디바이스를 등록합니다.
66
*/
77
export const RegisterUserNotificationDevice: Endpoint<
88
RegisterUserNotificationDeviceReq,
99
RegisterUserNotificationDeviceRes
1010
> = {
1111
method: "POST",
12-
path: (e) => `/users/${e.userId}/notification/devices`,
12+
path: (e) => `/users/${e.userId}/notifications/devices`,
1313
pathParams: ["userId"],
1414
bodyParams: ["token"],
1515
};

0 commit comments

Comments
 (0)