mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-27 15:46:30 +00:00
feat: root level kv accesses, and installed app listing + server health check fix (#2719)
* feat: root level kv accesses, and installed app listing * fix: revert server health check
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/node": "^24.9.1",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.9.3"
|
||||
|
||||
@@ -43,19 +43,14 @@ const createMethodDecorator = (method: HttpMethod) => {
|
||||
adminUsernames?: string[],
|
||||
) => {
|
||||
const { allowedAppIds, ...options } = routeOptions ?? {};
|
||||
return <
|
||||
P extends Record<string, string | undefined> = Record<
|
||||
string,
|
||||
string | undefined
|
||||
>,
|
||||
>(
|
||||
target: RequestHandler<P>,
|
||||
return (
|
||||
target: RequestHandler<any, any, any, any, any>,
|
||||
_context: ClassMethodDecoratorContext<
|
||||
This,
|
||||
(
|
||||
this: This,
|
||||
...args: Parameters<RequestHandler<P>>
|
||||
) => ReturnType<RequestHandler<P>>
|
||||
...args: Parameters<RequestHandler<any, any, any, any, any>>
|
||||
) => ReturnType<RequestHandler<any, any, any, any, any>>
|
||||
>,
|
||||
) => {
|
||||
_context.addInitializer(function () {
|
||||
|
||||
Reference in New Issue
Block a user