feature: Adds lookup API endpoint.
This commit is contained in:
parent
2ae917acd9
commit
9d3b5f82a0
7 changed files with 214 additions and 3 deletions
|
@ -30,7 +30,7 @@ export function route(fastify: FastifyInstance, prisma: PrismaClient, tokens: Re
|
|||
destinationPort: { type: "number" },
|
||||
|
||||
providerID: { type: "number" },
|
||||
enabled: { type: "boolean"}
|
||||
autoStart: { type: "boolean" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ export function route(fastify: FastifyInstance, prisma: PrismaClient, tokens: Re
|
|||
|
||||
providerID: number,
|
||||
|
||||
enabled?: boolean
|
||||
autoStart?: boolean
|
||||
} = req.body;
|
||||
|
||||
if (!await hasPermission(body.token, [
|
||||
|
@ -82,7 +82,7 @@ export function route(fastify: FastifyInstance, prisma: PrismaClient, tokens: Re
|
|||
|
||||
destProviderID: body.providerID,
|
||||
|
||||
enabled: Boolean(body.enabled)
|
||||
enabled: Boolean(body.autoStart)
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue