Skip to content

Commit 270be6f

Browse files
authored
Merge pull request #18 from topcoder-platform/dev
V6 switch
2 parents 5c7c754 + 2563395 commit 270be6f

File tree

4 files changed

+4
-29
lines changed

4 files changed

+4
-29
lines changed

src/app.module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { ToolsModule } from './mcp/tools/tools.module';
66
import { GlobalProvidersModule } from './shared/global/globalProviders.module';
77
import { ResourcesModule } from './mcp/resources/resources.module';
88
import { randomUUID } from 'crypto';
9-
import { TimingInterceptorMiddleware } from './shared/global/timingInterceptor';
109

1110
@Module({
1211
imports: [
@@ -29,6 +28,5 @@ import { TimingInterceptorMiddleware } from './shared/global/timingInterceptor';
2928
export class AppModule implements NestModule {
3029
configure(consumer: MiddlewareConsumer) {
3130
consumer.apply(TokenValidatorMiddleware).forRoutes('*');
32-
consumer.apply(TimingInterceptorMiddleware).forRoutes('*');
3331
}
3432
}

src/shared/global/timingInterceptor.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/shared/topcoder/challenges.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class TopcoderChallengesService {
1818
accessToken?: string,
1919
) {
2020
// Format the input parameters
21-
const url = new URL(`${TOPCODER_API_BASE_URL}/challenges`);
21+
const url = new URL(`${TOPCODER_API_BASE_URL}/v6/challenges`);
2222
Object.entries(queryParams).forEach(([key, value]) => {
2323
if (value !== undefined && value !== null) {
2424
if (Array.isArray(value)) {

src/shared/topcoder/skills.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export class TopcoderSkillsService {
1818
accessToken?: string,
1919
) {
2020
// Format the input parameters
21-
const url = new URL(`${TOPCODER_API_BASE_URL}/standardized-skills/skills`);
21+
const url = new URL(
22+
`${TOPCODER_API_BASE_URL}/v5/standardized-skills/skills`,
23+
);
2224
Object.entries(queryParams).forEach(([key, value]) => {
2325
if (value !== undefined && value !== null) {
2426
if (Array.isArray(value)) {

0 commit comments

Comments
 (0)