mirror of
https://github.com/docmost/docmost.git
synced 2026-08-28 09:17:06 +08:00
Updates to sidebar tree
* Maintain tree open state on route change and return * Load page tree ancestors and their children when a page is accessed directly * Show correct breadcrumb path * Add emoji to breadcrumbs * Backend api to get page breadcrumbs/ancestors
This commit is contained in:
@@ -104,4 +104,10 @@ export class PageController {
|
||||
async movePage(@Body() movePageDto: MovePageDto) {
|
||||
return this.pageService.movePage(movePageDto);
|
||||
}
|
||||
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post('/breadcrumbs')
|
||||
async getPageBreadcrumbs(@Body() dto: PageIdDto) {
|
||||
return this.pageService.getPageBreadCrumbs(dto.pageId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user