diff --git a/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java b/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java index 6b1fbbf..ac4e4f4 100644 --- a/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java +++ b/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/CustomApi.java @@ -12,7 +12,7 @@ public interface CustomApi { Call> repoGetContentsList( @Path("owner") String owner, @Path("repo") String repo, - @Path("filepath") String filepath, + @Path(value = "filepath", encoded = false) String filepath, @Query("ref") String ref); /** diff --git a/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/OTPApi.java b/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/OTPApi.java index 49fded9..8588ecc 100644 --- a/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/OTPApi.java +++ b/custom/src/main/java/org/gitnex/tea4j/v2/apis/custom/OTPApi.java @@ -33,11 +33,4 @@ public interface OTPApi { @Header("X-Gitea-OTP") int otp, @Path("username") String username, @Body CreateAccessTokenOption body); - - @GET("repos/{owner}/{repo}/contents/{filepath}") - Call> repoGetContentsList( - @Path("owner") String owner, - @Path("repo") String repo, - @Path("filepath") String filepath, - @Query("ref") String ref); }