mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 05:21:10 +10:00
* add /p/ segment to share urls
* minore fixes
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user