base_ui/apis/adminApi.js
2025-02-01 13:04:55 +03:30

44 lines
1.4 KiB
JavaScript

export default {
//منتقل شد به settingapi.app
// admin: {
// get: "setting/get/{{system}}",
// save: "setting/indexnew",
// },
projectForm: {
get: "project/get",
list: "project/list",
add: "project/add",
edit: "project/edit",
delete: "project/delete",
},
notification: {
get: "/notif/get/{{id}}", // GET
list: "/notif/list/{{offset}}/{{limit}}", //GET //admin all
listUnseen: "/notif/list/unseen/{{offset}}/{{limit}}", //GET //admin
countUnseen: "/notif/count/unseen", //GET
add: "/notif/add", //POST
edit: "/notif/edit/{{id}}", //POST
unseen: "/notif/list/unseen/{{offset}}/{{limit}}", //unseen get
seen: "/notif/list/seen/{{offset}}/{{limit}}", //seen get
new: "/notif/list/newest/{{offset}}/{{limit}}", //new get
all: "/notif/list/{{offset}}/{{limit}}", // all get
markAllAsRead: "/setting/notif/mark-all-as-read", // POST
counts: "/notif/counts", // get
delete: "/notif/delete/{{entity_type}}/{{id}}", // POST
},
favorite: {
favoriteList: "repo/favorite/chart/@data_type/@time_key", //GET
bookmarkList: "repo/favorite/chart/@data_type/@time_key", //GET
},
groups: {
setAdmin: "group/ed/setadmin",
groupsWithoutAdmin:
"group/ve/list/withoutadmin/@offset/@limit/@sortby/@sortorder/@query",
groupsWithAdmin:
"group/ve/list/withadmin/@offset/@limit/@sortby/@sortorder",
delete: "group/ve/delete",
},
};