* add /p/ segment to share urls

* minore fixes
This commit is contained in:
Philipinho
2025-04-22 20:24:55 +01:00
parent 7cd2c18b12
commit 6cfddead24
7 changed files with 33 additions and 38 deletions

View File

@ -19,7 +19,7 @@ export class ShareSeoController {
/*
* add meta tags to publicly shared pages
*/
@Get([':shareId/:pageSlug', 'p/:pageSlug'])
@Get([':shareId/p/:pageSlug', 'p/:pageSlug'])
async getShare(
@Res({ passthrough: false }) res: FastifyReply,
@Req() req: FastifyRequest,

View File

@ -32,7 +32,7 @@ async function bootstrap() {
);
app.setGlobalPrefix('api', {
exclude: ['robots.txt', 'share/:shareId/:pageSlug'],
exclude: ['robots.txt', 'share/:shareId/p/:pageSlug'],
});
const reflector = app.get(Reflector);