mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Api work for #205
Refactored how we check if the user has a valid api key Added POST request, PUT and DELTE Also some work on the updater #29
This commit is contained in:
parent
030c013862
commit
7266f20927
10 changed files with 306 additions and 80 deletions
|
@ -61,7 +61,7 @@ namespace PlexRequests.UI
|
|||
x => x.Port,
|
||||
e => -1);
|
||||
|
||||
var updated = result.MapResult(x => x.Updated, e => false);
|
||||
var updated = result.MapResult(x => x.Updated, e => UpdateValue.None);
|
||||
//TODO
|
||||
|
||||
PrintToConsole("Starting Up! Please wait, this can usually take a few seconds.", ConsoleColor.Yellow);
|
||||
|
@ -158,5 +158,17 @@ namespace PlexRequests.UI
|
|||
Console.WriteLine(message);
|
||||
Console.ForegroundColor = ConsoleColor.Gray;
|
||||
}
|
||||
|
||||
private static void CheckUpdate(UpdateValue val)
|
||||
{
|
||||
if (val == UpdateValue.Failed)
|
||||
{
|
||||
|
||||
}
|
||||
if (val == UpdateValue.Updated)
|
||||
{
|
||||
// TODO Change the name of PlexRequests.Updater.exe_Updated and delete the old version
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue