Fix file path encoding and clean up

This commit is contained in:
M M Arif
2022-05-12 18:08:46 +05:00
parent c4de196c34
commit a5b0c582c8
2 changed files with 1 additions and 8 deletions
@@ -12,7 +12,7 @@ public interface CustomApi {
Call<List<ContentsResponse>> repoGetContentsList(
@Path("owner") String owner,
@Path("repo") String repo,
@Path("filepath") String filepath,
@Path(value = "filepath", encoded = false) String filepath,
@Query("ref") String ref);
/**
@@ -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<List<ContentsResponse>> repoGetContentsList(
@Path("owner") String owner,
@Path("repo") String repo,
@Path("filepath") String filepath,
@Query("ref") String ref);
}