Skip to content

Commit 9263a2b

Browse files
committed
Move router module from kernel to api
The router module and related references have been moved from the kernel to the api package and documentation. Imports and exports have been updated to reflect this change, improving organization and separation of concerns.
1 parent 0b470c2 commit 9263a2b

7 files changed

Lines changed: 6 additions & 8 deletions

File tree

content/docs/references/api/meta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"contract",
66
"discovery",
77
"endpoint",
8-
"realtime"
8+
"realtime",
9+
"router"
910
]
1011
}
File renamed without changes.

content/docs/references/kernel/meta.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"logger",
77
"manifest",
88
"plugin",
9-
"router",
109
"scoped-storage"
1110
]
1211
}

packages/spec/src/api/endpoint.zod.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { z } from 'zod';
2-
3-
/**
4-
* HTTP Method Enum
5-
*/
6-
export const HttpMethod = z.enum(['GET', 'POST', 'PUT', 'DELETE', 'PATCH']);
2+
import { HttpMethod } from './router.zod';
73

84
/**
95
* Rate Limit Strategy

packages/spec/src/api/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ export * from './contract.zod';
1010
export * from './endpoint.zod';
1111
export * from './discovery.zod';
1212
export * from './realtime.zod';
13+
export * from './router.zod';
14+

packages/spec/src/kernel/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export * from './plugin.zod';
1010
export * from './logger.zod';
1111
export * from './context.zod';
1212
export * from './scoped-storage.zod';
13-
export * from './router.zod';
13+
1414

1515

1616

0 commit comments

Comments
 (0)