feat: restock darvo (#221)
This commit is contained in:
parent
ea994e24d6
commit
7fa9d08a4d
8
src/controllers/api/getDailyDealStockLevelsController.ts
Normal file
8
src/controllers/api/getDailyDealStockLevelsController.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { RequestHandler } from "express";
|
||||||
|
|
||||||
|
export const getDailyDealStockLevelsController: RequestHandler = (req, res) => {
|
||||||
|
res.json({
|
||||||
|
StoreItem: req.query.productName,
|
||||||
|
AmountSold: 0
|
||||||
|
});
|
||||||
|
};
|
@ -47,6 +47,7 @@ import { createGuildController } from "@/src/controllers/api/createGuildControll
|
|||||||
import { sellController } from "@/src/controllers/api/sellController";
|
import { sellController } from "@/src/controllers/api/sellController";
|
||||||
import { upgradesController } from "@/src/controllers/api/upgradesController";
|
import { upgradesController } from "@/src/controllers/api/upgradesController";
|
||||||
import { setSupportedSyndicateController } from "@/src/controllers/api/setSupportedSyndicateController";
|
import { setSupportedSyndicateController } from "@/src/controllers/api/setSupportedSyndicateController";
|
||||||
|
import { getDailyDealStockLevelsController } from "@/src/controllers/api/getDailyDealStockLevelsController";
|
||||||
|
|
||||||
const apiRouter = express.Router();
|
const apiRouter = express.Router();
|
||||||
|
|
||||||
@ -75,6 +76,7 @@ apiRouter.get("/setBootLocation.php", setBootLocationController);
|
|||||||
apiRouter.get("/setActiveShip.php", setActiveShipController);
|
apiRouter.get("/setActiveShip.php", setActiveShipController);
|
||||||
apiRouter.get("/getGuild.php", getGuildController);
|
apiRouter.get("/getGuild.php", getGuildController);
|
||||||
apiRouter.get("/setSupportedSyndicate.php", setSupportedSyndicateController);
|
apiRouter.get("/setSupportedSyndicate.php", setSupportedSyndicateController);
|
||||||
|
apiRouter.get("/getDailyDealStockLevels.php", getDailyDealStockLevelsController);
|
||||||
|
|
||||||
// post
|
// post
|
||||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
|
@ -942,7 +942,7 @@
|
|||||||
"OriginalPrice": 40,
|
"OriginalPrice": 40,
|
||||||
"SalePrice": 20,
|
"SalePrice": 20,
|
||||||
"AmountTotal": 50,
|
"AmountTotal": 50,
|
||||||
"AmountSold": 50
|
"AmountSold": 0
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"LibraryInfo": { "LastCompletedTargetType": "/Lotus/Types/Game/Library/Targets/Research7Target" },
|
"LibraryInfo": { "LastCompletedTargetType": "/Lotus/Types/Game/Library/Targets/Research7Target" },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user