chore(core): Rename Data Store module to Data Table (no-changelog) (#18675)

This commit is contained in:
Charlie Kolb
2025-08-25 14:57:23 +02:00
committed by GitHub
parent 1f1730c27d
commit 2dc34b2f17
36 changed files with 37 additions and 36 deletions

View File

@@ -0,0 +1,20 @@
import { ListDataStoreQueryDto } from '@n8n/api-types';
import { AuthenticatedRequest } from '@n8n/db';
import { Get, GlobalScope, Query, RestController } from '@n8n/decorators';
import { DataStoreAggregateService } from './data-store-aggregate.service';
@RestController('/data-stores-global')
export class DataStoreAggregateController {
constructor(private readonly dataStoreAggregateService: DataStoreAggregateService) {}
@Get('/')
@GlobalScope('dataStore:list')
async listDataStores(
req: AuthenticatedRequest,
_res: Response,
@Query payload: ListDataStoreQueryDto,
) {
return await this.dataStoreAggregateService.getManyAndCount(req.user, payload);
}
}