We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b35a6a8 commit 2dd1ccaCopy full SHA for 2dd1cca
packages/server/src/nestjs/interfaces/api-handler-options.interface.ts
@@ -1,5 +1,18 @@
1
import { AdapterBaseOptions } from "../../types";
2
3
export interface ApiHandlerOptions extends AdapterBaseOptions {
4
+ /**
5
+ * The base URL for the API handler. This is used to determine the base path for the API requests.
6
+ * If you are using the ApiHandlerService in a route with a prefix, you should set this to the prefix.
7
+ *
8
+ * e.g.
9
+ * without baseUrl(API handler default route):
10
+ * - RPC API handler: [model]/findMany
11
+ * - RESTful API handler: /:type
12
13
+ * with baseUrl(/api/crud):
14
+ * - RPC API handler: /api/crud/[model]/findMany
15
+ * - RESTful API handler: /api/crud/:type
16
+ */
17
baseUrl?: string;
18
}
0 commit comments