Dropped support for Shlink 1

This commit is contained in:
Alejandro Celaya
2020-12-12 13:33:21 +01:00
parent b9905c8bf4
commit df6f1b984f
14 changed files with 45 additions and 145 deletions

View File

@@ -125,7 +125,7 @@ export default class ShlinkApiClient {
// When the request is not invalid or we have already tried both API versions, throw the error and let the
// caller handle it
if (!apiVersionIsNotSupported || this.apiVersion === 1) {
if (!apiVersionIsNotSupported || this.apiVersion === 2) {
throw e;
}

View File

@@ -65,8 +65,6 @@ export interface ProblemDetailsError {
detail: string;
title: string;
status: number;
error?: string; // Deprecated
message?: string; // Deprecated
[extraProps: string]: any;
}