Skip to content
Snippets Groups Projects

(1st MR) Refactorings to prepare to add a Logger

Merged Omar Qunsul requested to merge extract-rules-matching-into-router-engine into main
All threads resolved!
Files
4
@@ -2,12 +2,7 @@ import { GITLAB_TOPOLOGY_SERVICE_CLASSIFY_PATH } from './constants';
import { ClassifyRequest, ClassifyResponse } from './types';
import { proxifyFetch, secureCachedApiFetch } from '../utils';
export async function classifyFetch(
env: Env,
ctx: ExecutionContext,
type: string,
value?: string,
): Promise<ClassifyResponse> {
export async function classifyFetch(env: Env, ctx: ExecutionContext, type: string, value?: string): Promise<ClassifyResponse> {
const topologyServiceUrl = new URL(`${env.GITLAB_TOPOLOGY_SERVICE_URL}${GITLAB_TOPOLOGY_SERVICE_CLASSIFY_PATH}`);
const requestBody = JSON.stringify({ type: type, value: value });
Loading