enhance: add endpoint to fetch query data by query store id
This commit is contained in:
parent
fdf67d4763
commit
16f6846d89
2 changed files with 31 additions and 1 deletions
|
@ -1,5 +1,10 @@
|
|||
import express, { Request, Response } from "express";
|
||||
import { executeQuery, getAllTableMeta, getTableMetaByTablename } from "../../../controller/admin/club/queryBuilderController";
|
||||
import {
|
||||
executeQuery,
|
||||
executeQueryByStoreId,
|
||||
getAllTableMeta,
|
||||
getTableMetaByTablename,
|
||||
} from "../../../controller/admin/club/queryBuilderController";
|
||||
|
||||
var router = express.Router({ mergeParams: true });
|
||||
|
||||
|
@ -15,4 +20,8 @@ router.post("/query", async (req: Request, res: Response) => {
|
|||
await executeQuery(req, res);
|
||||
});
|
||||
|
||||
router.post("/query/:storeId", async (req: Request, res: Response) => {
|
||||
await executeQueryByStoreId(req, res);
|
||||
});
|
||||
|
||||
export default router;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue