api : add api
Deskripsi: - add gorup - add position - village No issue
This commit is contained in:
34
src/module/position/api/api_index.ts
Normal file
34
src/module/position/api/api_index.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import { getAllPosition } from "./get/getAllPosition";
|
||||
import { getOnePosition } from "./get/getOnePosition";
|
||||
import { createlPosition } from "./post/createPosition";
|
||||
import { deletePosition } from "./post/deletePosition";
|
||||
import { updatePosition } from "./post/updatePosition";
|
||||
|
||||
export const API_INDEX_POSITION = [
|
||||
{
|
||||
path: "get-all-position",
|
||||
method: "GET",
|
||||
bin: getAllPosition,
|
||||
},
|
||||
{
|
||||
path: "create-position",
|
||||
method: "POST",
|
||||
bin: createlPosition,
|
||||
},
|
||||
{
|
||||
path: "update-position",
|
||||
method: "POST",
|
||||
bin: updatePosition,
|
||||
},
|
||||
{
|
||||
path: "delete-position",
|
||||
method: "POST",
|
||||
bin: deletePosition,
|
||||
},
|
||||
{
|
||||
path: "get-one-position",
|
||||
method: "GET",
|
||||
bin: getOnePosition,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user