feat(dashboard): owner-only GET/PUT /api/dashboard/layout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-06-02 22:19:37 +10:00
parent c67ac27545
commit 5c6d2077c3
3 changed files with 62 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import { router as searchRouter } from './routes/search.js';
import { router as jobsRouter } from './routes/jobs.js';
import { router as captureRouter } from './routes/capture.js';
import { spacesScopedRouter as companionRouter } from './routes/companion.js';
import { router as dashboardRouter } from './routes/dashboard.js';
export function mountApi(app) {
const api = Router();
@@ -53,6 +54,7 @@ export function mountApi(app) {
api.use('/search', searchRouter);
api.use('/jobs', jobsRouter);
api.use('/capture', captureRouter);
api.use('/dashboard', dashboardRouter);
api.use('/:entity_type/:entity_id/tags', tagsByEntityRouter);
api.use((_req, _res, next) => next(new NotFoundError('route not found')));