UNPKG

@gov-cy/govcy-express-services

Version:

An Express-based system that dynamically renders services using @gov-cy/govcy-frontend-renderer and posts data to a submission API.

20 lines 921 B
/** * Shared constants for allowed form elements. */ export const ALLOWED_FORM_ELEMENTS = ["textInput", "textArea", "select", "radios", "checkboxes", "datePicker", "dateInput","fileInput","fileView"]; export const ALLOWED_FILE_MIME_TYPES = ['application/pdf', 'image/jpeg', 'image/png']; export const ALLOWED_FILE_EXTENSIONS = ['pdf', 'jpg', 'jpeg', 'png']; export const ALLOWED_FILE_SIZE_MB = 4; // Maximum file size in MB export const ALLOWED_MULTER_FILE_SIZE_MB = 10; // Maximum file size in MB // UPDATE MY DETAILS // Only allow certain hosts export const UPDATE_MY_DETAILS_ALLOWED_HOSTS = [ "update-my-details.staging.service.gov.cy", "update-my-details.service.gov.cy", "localhost" ]; // Possible incoming routes export const UPDATE_MY_DETAILS_REDIRECT_HOSTS = [ "update-my-details.staging.service.gov.cy", "update-my-details.service.gov.cy" ];