hooks.server
Documentation / hooks.server
allowCORSAccessAPI​
const allowCORSAccessAPI: Handle;
Defined in: web-app/src/hooks.server.ts:24
Enable API access for users with valid API keys and allow CORS.
Param​
RequestEvent, resolve: Function
Returns​
- The resolved response
handle​
const handle: Handle;
Defined in: web-app/src/hooks.server.ts:96
handleError()​
function handleError(param0: object): object;
Defined in: web-app/src/hooks.server.ts:83
Handles any errors that occur during the execution of the hooks
Parameters​
Parameter | Type | Description |
---|---|---|
| { | The parameters object |
|
| The error object |
|
| The error message |
|
| The HTTP status code |
Returns​
object
The resolved event
Name | Type | Defined in |
---|---|---|
|
| web-app/src/hooks.server.ts:93 |