Skip to content

Commit

Permalink
fix: disable v3 support (#2760)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmrgt authored Jan 17, 2025
1 parent d000b0d commit ea75fc8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/src/pdc/proxy/helpers/registerExpressRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ export function registerExpressRoute(app: express.Express, kernel: KernelInterfa
setSentryUser(req);
const { api_version, ...rparams } = req.params;

// FIXME: This is a dirty hack to ensure backward compatibility
const apiVersion = api_version == "v3" ? "v3.0" : api_version;

const versionRange = semver.tryParseRange(apiVersion);
const versionRange = semver.tryParseRange(api_version);
if (!versionRange) {
return res.status(404).end();
}
Expand Down

0 comments on commit ea75fc8

Please sign in to comment.