mirror of
https://github.com/readrops/Readrops.git
synced 2025-02-01 11:16:49 +01:00
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:
parent
90875af468
commit
6fdb36085f
@ -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/"
|
||||
}
|
||||
|
||||
}
|
@ -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/"
|
||||
}
|
||||
}
|
@ -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/"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user