forked from OpenWF/SpaceNinjaServer
Endpoint for custom API: https://localhost:443/custom/addItem example request: { "type": "Weapon", "internalName": "/Lotus/Weapons/Grineer/Pistols/GrineerMicrowavegun/GrnMicrowavePistol", "accountId": "6488fd2e7bec200069ca4242" }
14 lines
450 B
TypeScript
14 lines
450 B
TypeScript
import { Inventory } from "@/src/models/inventoryModel";
|
|
import { RequestHandler } from "express";
|
|
import util from "util";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
const saveLoadoutController: RequestHandler = async (req, res) => {
|
|
const body = JSON.parse(req.body);
|
|
console.log(util.inspect(body, { showHidden: false, depth: null, colors: true }));
|
|
|
|
res.sendStatus(200);
|
|
};
|
|
|
|
export { saveLoadoutController };
|