cityssm/parking-ticket-system

View on GitHub
handlers/dashboard-post/doGetDefaultConfigProperties.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { getConfigProperty } from '../../helpers/functions.config.js';
export default function handler(_request, response) {
    response.json({
        locationClasses: getConfigProperty('locationClasses'),
        ticketNumber_fieldLabel: getConfigProperty('parkingTickets.ticketNumber.fieldLabel'),
        parkingTicketStatuses: getConfigProperty('parkingTicketStatuses'),
        licencePlateCountryAliases: getConfigProperty('licencePlateCountryAliases'),
        licencePlateProvinceAliases: getConfigProperty('licencePlateProvinceAliases'),
        licencePlateProvinces: getConfigProperty('licencePlateProvinces')
    });
}