Skip to content

Commit

Permalink
Minute Changes in Names and Initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
vr-varad committed Jul 2, 2024
1 parent 788ef50 commit 512440e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions apps/cli/src/http/auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Logger from '../util/logger'

class AuthControllerClass {
class AuthController {
static async checkApiKeyValidity(baseUrl: string, apiKey: string): Promise<void> {
Logger.info('Checking API key validity...')
const response = await fetch(`${baseUrl}/api/api-key/access/live-updates`, {
Expand All @@ -19,6 +19,5 @@ class AuthControllerClass {
}
}

const AuthController = new AuthControllerClass();

export default AuthController
3 changes: 1 addition & 2 deletions apps/cli/src/http/secret.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Configuration } from '../commands/run/run.types'

class SecretControllerClass {
class SecretController {
static async fetchSecrets(
baseUrl: string,
apiKey: string,
Expand All @@ -25,6 +25,5 @@ class SecretControllerClass {
}
}

const SecretController = new SecretControllerClass();

export default SecretController
4 changes: 1 addition & 3 deletions apps/cli/src/http/variable.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Configuration } from '../commands/run/run.types'

class VariableControllerClass{
class VariableController{
static async fetchVariables(
baseUrl: string,
apiKey: string,
Expand All @@ -25,6 +25,4 @@ class VariableControllerClass{
}
}

const VariableController = new VariableControllerClass();

export default VariableController

0 comments on commit 512440e

Please sign in to comment.