mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
25 lines
608 B
C++
25 lines
608 B
C++
#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)
|
|
{
|
|
|
|
}
|