mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
chore(core): Rename Data Store module to Data Table (no-changelog) (#18675)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user