api : add api position api group and api users
This commit is contained in:
34
src/module/user/api/api_index.ts
Normal file
34
src/module/user/api/api_index.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
import { getAllUser } from "./get/getAllUser";
|
||||
import { getOneUser } from "./get/getOneUser";
|
||||
import { updateUser } from "./post/updateUser";
|
||||
import { deleteUser } from "./post/deleteUser";
|
||||
import { createUser } from "./post/createUser";
|
||||
|
||||
export const API_INDEX_USER = [
|
||||
{
|
||||
path: "get-all-users",
|
||||
method: "GET",
|
||||
bin: getAllUser,
|
||||
},
|
||||
{
|
||||
path: "get-one-users",
|
||||
method: "GET",
|
||||
bin: getOneUser,
|
||||
},
|
||||
{
|
||||
path: "create-users",
|
||||
method: "POST",
|
||||
bin: createUser,
|
||||
},
|
||||
{
|
||||
path: "update-users",
|
||||
method: "POST",
|
||||
bin: updateUser,
|
||||
},
|
||||
{
|
||||
path: "delete-users",
|
||||
method: "POST",
|
||||
bin: deleteUser,
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user