TYTD w api
This commit is contained in:
parent
bb54f8a32e
commit
0ba0d34596
|
@ -95,12 +95,12 @@ namespace TYTD
|
||||||
Route.Add("/api/Storage/VideoRes/{Res}/{Id}",(HttpAction)VideoRes);
|
Route.Add("/api/Storage/VideoRes/{Res}/{Id}",(HttpAction)VideoRes);
|
||||||
Route.Add("/api/upload/", (HttpAction)UploadFiles, "POST");
|
Route.Add("/api/upload/", (HttpAction)UploadFiles, "POST");
|
||||||
|
|
||||||
|
ApiLoader.Init();
|
||||||
/* Other */
|
/* Other */
|
||||||
Route.Add("/", (HttpAction)Index);
|
Route.Add("/", (HttpAction)Index);
|
||||||
Route.Add("/{Path}", (HttpAction)RootPath);
|
Route.Add("/{Path}", (HttpAction)RootPath);
|
||||||
Console.CancelKeyPress += (sender, e) => { ApiLoader.Dispose();var date = DateTime.Now.ToString("yyyyMMdd_HHmmss");File.WriteAllText(Path.Combine("config","queues-close",$"{date}.json"), Downloader.GetQueue()); return; };
|
Console.CancelKeyPress += (sender, e) => { ApiLoader.Dispose();var date = DateTime.Now.ToString("yyyyMMdd_HHmmss");File.WriteAllText(Path.Combine("config","queues-close",$"{date}.json"), Downloader.GetQueue()); return; };
|
||||||
ApiLoader.Init();
|
|
||||||
|
|
||||||
Console.WriteLine("Almost Ready To Listen");
|
Console.WriteLine("Almost Ready To Listen");
|
||||||
|
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
||||||
097be3965e64cbf59b26ef01ef9593b6d45f996f
|
3eb6dde99f6eaaac2f2eb82e830940474adc1a21
|
||||||
|
|
|
@ -125,3 +125,4 @@
|
||||||
/home/ddlovato/tytd/site/TYTD.Api/obj/Release/TYTD.Api.csproj.CoreCompileInputs.cache
|
/home/ddlovato/tytd/site/TYTD.Api/obj/Release/TYTD.Api.csproj.CoreCompileInputs.cache
|
||||||
/home/ddlovato/tytd/site/TYTD.Api/obj/Release/TYTD.Api.csproj.CopyComplete
|
/home/ddlovato/tytd/site/TYTD.Api/obj/Release/TYTD.Api.csproj.CopyComplete
|
||||||
/home/ddlovato/tytd/site/TYTD.Api/obj/Release/TYTD.Api.dll
|
/home/ddlovato/tytd/site/TYTD.Api/obj/Release/TYTD.Api.dll
|
||||||
|
/home/ddlovato/tytd/site/TYTD.Api/bin/Release/System.Text.Encoding.CodePages.xml
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue