2020-09-17 Fred Gleason <fredg@paravelsystems.com>

* Added an 'RDUser::feedAuthorized()' method.
	* Added a 'SavePodcast' method to the Web API.
	* Added a 'GetPodcast' method to the Web API.
	* Added a 'DeletePodcast' method to the Web API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-09-17 16:19:26 -04:00
parent 288b7a9826
commit 6516c20ff6
13 changed files with 559 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
//
// Rivendell web service portal
//
// (C) Copyright 2010-2019 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2010-2020 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -154,6 +154,7 @@ void Xport::ripcConnectedData(bool state)
// Read Command Variable and Dispatch
//
int command=xport_post->value("COMMAND").toInt();
switch(command) {
case RDXPORT_COMMAND_EXPORT:
Export();
@@ -295,6 +296,18 @@ void Xport::ripcConnectedData(bool state)
SaveFile();
break;
case RDXPORT_COMMAND_SAVE_PODCAST:
SavePodcast();
break;
case RDXPORT_COMMAND_GET_PODCAST:
GetPodcast();
break;
case RDXPORT_COMMAND_DELETE_PODCAST:
DeletePodcast();
break;
default:
printf("Content-type: text/html\n\n");
printf("rdxport: missing/invalid command\n");