Fix endpoint slash (#231)

* Fix endpoint slash
The URLs sent to the API contained a slash too much:

Example for FreshRSS:

```
"POST //api/greader.php/reader/api/0/edit-tag HTTP/1.1" 200 2 "-" "okhttp/4.12.0"

"GET //api/greader.php/reader/api/0/tag/list?output=json HTTP/1.1" 200 654 "-" "okhttp/4.12.0"
```

* Fix import

* Remove dependency to com.readrops.app.util.Utils which was not working

* Skip null

* Simplify
https://github.com/readrops/Readrops/pull/231#issuecomment-2509005818

* Remove slash from end-points
https://github.com/readrops/Readrops/pull/231#issuecomment-2510059340
This commit is contained in:
Alexandre Alapetite 2024-12-02 16:45:47 +01:00 committed by GitHub
parent 90875af468
commit 6fdb36085f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ interface FeverService {
@Query("id") id: String)
companion object {
const val END_POINT = "/api/fever.php/"
const val END_POINT = "api/fever.php/"
}
}

View File

@ -92,6 +92,6 @@ interface FreshRSSService {
suspend fun deleteFolder(@Field("T") token: String, @Field("s") folderId: String)
companion object {
const val END_POINT = "/api/greader.php/"
const val END_POINT = "api/greader.php/"
}
}

View File

@ -68,6 +68,6 @@ interface NextcloudNewsService {
suspend fun renameFolder(@Path("folderId") folderId: Int, @Body folderName: Map<String, String>)
companion object {
const val END_POINT = "/index.php/apps/news/api/v1-3/"
const val END_POINT = "index.php/apps/news/api/v1-3/"
}
}