9 lines
296 B
JavaScript
9 lines
296 B
JavaScript
import { getLotTypeById } from '../../helpers/functions.cache.js';
|
|
export const handler = (request, response) => {
|
|
const lotType = getLotTypeById(Number.parseInt(request.body.lotTypeId, 10));
|
|
response.json({
|
|
lotTypeFields: lotType.lotTypeFields
|
|
});
|
|
};
|
|
export default handler;
|