hrms-user/src/api/api.message.ts

14 lines
458 B
TypeScript
Raw Normal View History

2023-09-08 13:31:48 +07:00
import env from "./index";
const message = `${env.API_URI}/message`;
2023-12-23 20:14:30 +07:00
const reply = `${env.API_URI}/placement/noti`;
2023-09-08 13:31:48 +07:00
export default {
2024-01-18 11:36:19 +07:00
msgNotificate: `${message}/my-notifications`,
2024-01-19 13:58:14 +07:00
msgNotificateTotal: `${message}/my-notifications/noread`,
2024-01-18 11:36:19 +07:00
msgInbox: `${message}/my-inboxes`,
msgId: (id: string) => `${message}/my-notifications/${id}`,
replyMessage: (id: string) => `${reply}/${id}`,
2024-01-19 13:58:14 +07:00
msgInboxRead: (id: string) => `${message}/my-inboxes/${id}`,
2023-09-08 13:31:48 +07:00
};