release 0.5.0 #35
@ -80,7 +80,7 @@ class TCoRAPIController(cont: Context) {
 | 
				
			|||||||
     * get the json object from tcor api and write it as file (cache)
 | 
					     * get the json object from tcor api and write it as file (cache)
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    fun getCoursesList() = doAsync {
 | 
					    fun getCoursesList() = doAsync {
 | 
				
			||||||
        val url = URL("https://tcor.mosad.xyz/courses")
 | 
					        val url = URL("https://tcor.mosad.xyz/courseList")
 | 
				
			||||||
        val file = File(context.filesDir, "courses.json")
 | 
					        val file = File(context.filesDir, "courses.json")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // read data from the API
 | 
					        // read data from the API
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user