You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select the runnable that should be triggered by this route. To quickly get started, you can use the `create from template` button to generate a runnable template.
21
23
22
24
Here's an example script:
23
25
24
26
```TypeScript
25
27
exportasyncfunction main(/* args from the request body */) {
The route also supports additional configuration options:
65
67
-**Request type**: Whether the route should return the id (async) or the result (sync) of the runnable.
66
-
-**Authentication**: Whether the route should require authentication. If authentication is required, the user needs to have read access to both the route and the runnable.
68
+
-**Authentication**: Whether the route should require authentication. If authentication is required, the user needs to have read access to both the route and the runnable.
69
+
70
+
### Serving static assets and websites
71
+
72
+
For static assets, upload or specify a file using the S3 picker. The file will be served at the chosen path.
73
+
74
+
For websites, upload or specify a folder on S3. All its files will be served under the chosen path.
75
+
Use the full path as the base URL of your website to ensure relative imports work correctly.
76
+
If no file is found at the requested subpath, Windmill will fallback to index.html.
0 commit comments