|
|
@ -47,10 +47,10 @@ class HttpServer(port: Int) : NanoHTTPD(port) { |
|
|
|
"/getSource" -> returnData = SourceController().getSource(parameters) |
|
|
|
"/getSource" -> returnData = SourceController().getSource(parameters) |
|
|
|
"/getSources" -> returnData = SourceController().sources |
|
|
|
"/getSources" -> returnData = SourceController().sources |
|
|
|
"/getBookshelf" -> returnData = BookshelfController().bookshelf |
|
|
|
"/getBookshelf" -> returnData = BookshelfController().bookshelf |
|
|
|
"/getChapterList" -> returnData = |
|
|
|
"/getChapterList" -> |
|
|
|
BookshelfController().getChapterList(parameters) |
|
|
|
returnData = BookshelfController().getChapterList(parameters) |
|
|
|
"/getBookContent" -> returnData = |
|
|
|
"/getBookContent" -> |
|
|
|
BookshelfController().getBookContent(parameters) |
|
|
|
returnData = BookshelfController().getBookContent(parameters) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|