feat: enhance API and query handling with Redis caching; add QueryGuard for query validation; refactor services to utilize RedisClient for improved performance
This commit is contained in:
@ -10,6 +10,10 @@ export class ApiController {
|
||||
|
||||
@Post("token/generate")
|
||||
generateToken(@Body() body: { id: string }) {
|
||||
if (!body.id) {
|
||||
throw new Error("Project ID is required");
|
||||
}
|
||||
|
||||
return this.apiService.generateToken(body.id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user