fix: แก้ path api
This commit is contained in:
parent
5969c62363
commit
6a5abd818f
2 changed files with 10 additions and 6 deletions
|
|
@ -2,12 +2,13 @@ import env from "./index";
|
|||
|
||||
const message = `${env.API_URI}/message`;
|
||||
const reply = `${env.API_URI}/placement/noti`;
|
||||
const placementMessage = `${env.API_URI}/placement/message`;
|
||||
|
||||
export default {
|
||||
msgNotificate: `${message}/my-notifications`,
|
||||
msgNotificateTotal: `${message}/my-notifications/noread`,
|
||||
msgInbox: `${message}/my-inboxes`,
|
||||
msgId: (id: string) => `${message}/my-notifications/${id}`,
|
||||
msgNotificate: `${placementMessage}/my-notifications`,
|
||||
msgNotificateTotal: `${placementMessage}/my-notifications/noread`,
|
||||
msgInbox: `${placementMessage}/my-inboxes`,
|
||||
msgId: (id: string) => `${placementMessage}/my-notifications/${id}`,
|
||||
replyMessage: (id: string) => `${reply}/${id}`,
|
||||
msgInboxRead: (id: string) => `${message}/my-inboxes/${id}`,
|
||||
msgInboxRead: (id: string) => `${placementMessage}/my-inboxes/${id}`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue