mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Added new class for serving a list of reading lists, service is not implemented yet.
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
#include "readinglistscontroller.h"
|
||||
|
||||
ReadingListsController::ReadingListsController()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void ReadingListsController::service(HttpRequest &request, HttpResponse &response)
|
||||
{
|
||||
response.setHeader("Content-Type", "text/plain; charset=utf-8");
|
||||
|
||||
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
|
||||
QStringList pathElements = path.split('/');
|
||||
int libraryId = pathElements.at(2).toInt();
|
||||
|
||||
serviceContent(libraryId, response);
|
||||
|
||||
response.write("",true);
|
||||
}
|
||||
|
||||
void ReadingListsController::serviceContent(const int library, HttpResponse &response)
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user