@crowdin/app-project-module 0.28.0-6 → 0.28.0-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,7 +18,8 @@ function handle(config, moduleConfig) {
|
|
|
18
18
|
return (0, util_1.runAsyncWrapper)((req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
19
19
|
if (moduleConfig.formSchema) {
|
|
20
20
|
return res.render('form', {
|
|
21
|
-
|
|
21
|
+
formGetDataUrl: moduleConfig.formGetDataUrl ? moduleConfig.formGetDataUrl : '/api/form-data',
|
|
22
|
+
formPostDataUrl: moduleConfig.formPostDataUrl ? moduleConfig.formPostDataUrl : '/api/form-data',
|
|
22
23
|
formSchema: JSON.stringify(moduleConfig.formSchema),
|
|
23
24
|
formUiSchema: moduleConfig.formUiSchema ? JSON.stringify(moduleConfig.formUiSchema) : '{}',
|
|
24
25
|
});
|
package/out/models/index.d.ts
CHANGED
|
@@ -602,10 +602,15 @@ export interface UiModule {
|
|
|
602
602
|
*/
|
|
603
603
|
formSchema?: object;
|
|
604
604
|
/**
|
|
605
|
-
* URL to custom endpoint that can be used instead of default one to save
|
|
606
|
-
* Endpoint should accept
|
|
605
|
+
* URL to custom endpoint that can be used instead of default one to save form data.
|
|
606
|
+
* Endpoint should accept POST requests.
|
|
607
607
|
*/
|
|
608
|
-
|
|
608
|
+
formPostDataUrl?: string;
|
|
609
|
+
/**
|
|
610
|
+
* URL to custom endpoint that can be used instead of default one to retrieve form data.
|
|
611
|
+
* Endpoint should accept GET requests.
|
|
612
|
+
*/
|
|
613
|
+
formGetDataUrl?: string;
|
|
609
614
|
/**
|
|
610
615
|
* Additional attributes for react-jsonschema-doc
|
|
611
616
|
*/
|