รายการคำสั่ง ==> API
This commit is contained in:
parent
71be6d095f
commit
15b33b147a
14 changed files with 568 additions and 145 deletions
|
|
@ -1,7 +1,11 @@
|
|||
import env from "../index";
|
||||
|
||||
const command = `${env.API_URI}/order`;
|
||||
const command = `${env.API_URI}/org/command`;
|
||||
|
||||
export default {
|
||||
commandType: `${command}/order-type`,
|
||||
commandType: `${command}Type/list`, //ประเภทคำสั่ง
|
||||
commandList: `${command}/list`, //list รายการ
|
||||
command, //สร้างคำสั่ง
|
||||
commandAction: (commandId: string, type: string) =>
|
||||
`${command}/${type}/${commandId}`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue