mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 13:06:33 +00:00
refactor(gui): linting
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import RestApi from "@/components/project/spreadsheet/apis/restApi";
|
||||
import GqlApi from "@/components/project/spreadsheet/apis/gqlApi";
|
||||
import GrpcApi from "@/components/project/spreadsheet/apis/grpcApi";
|
||||
import RestApi from '@/components/project/spreadsheet/apis/restApi'
|
||||
import GqlApi from '@/components/project/spreadsheet/apis/gqlApi'
|
||||
import GrpcApi from '@/components/project/spreadsheet/apis/grpcApi'
|
||||
|
||||
export default class ApiFactory {
|
||||
static create(type, table, columns, ctx, meta) {
|
||||
static create (type, table, columns, ctx, meta) {
|
||||
if (type === 'graphql') {
|
||||
return new GqlApi(table, columns, meta, ctx,);
|
||||
return new GqlApi(table, columns, meta, ctx)
|
||||
} else if (type === 'grpc') {
|
||||
return new GrpcApi(table, ctx)
|
||||
} else if (type === 'rest') {
|
||||
return new RestApi(table, ctx);
|
||||
return new RestApi(table, ctx)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user