Skip to content

Commit 7ccc91a

Browse files
committed
remove unused param
1 parent eaa9575 commit 7ccc91a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/hono/src/honoPlugin.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ export type StlAppOptions = {
2828

2929
const methods = ["GET", "HEAD", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"];
3030

31-
function makeHandler(
32-
basePath: string,
33-
endpoints: AnyEndpoint[],
34-
options?: StlAppOptions
35-
) {
31+
function makeHandler(endpoints: AnyEndpoint[], options?: StlAppOptions) {
3632
const stl = endpoints[0]?.stl;
3733
if (!stl) {
3834
throw new Error(`endpoints[0].stl must be defined`);
@@ -107,11 +103,10 @@ function makeHandler(
107103
}
108104

109105
export function stlApi(
110-
{ basePath, topLevel, resources }: AnyAPIDescription,
106+
{ topLevel, resources }: AnyAPIDescription,
111107
options?: StlAppOptions
112108
) {
113109
return makeHandler(
114-
basePath,
115110
allEndpoints({
116111
actions: topLevel?.actions,
117112
namespacedResources: resources,

0 commit comments

Comments
 (0)