Serve public AI prompts as plain text.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
91a20a89d6
commit
cbe7aced6d
@@ -100,13 +100,8 @@ export class AiPromptsController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Get('public/ai-prompts/:publicId')
|
@Get('public/ai-prompts/:publicId')
|
||||||
getPublic(@Param('publicId') publicId: string) {
|
|
||||||
return this.service.getPublic(publicId);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Get('public/ai-prompts/:publicId/raw')
|
|
||||||
@Header('Content-Type', 'text/plain; charset=utf-8')
|
@Header('Content-Type', 'text/plain; charset=utf-8')
|
||||||
getPublicRaw(@Param('publicId') publicId: string) {
|
getPublic(@Param('publicId') publicId: string) {
|
||||||
return this.service.getPublicText(publicId);
|
return this.service.getPublicText(publicId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user