mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-18 09:36:16 +00:00
admin api packaging
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// See https://aka.ms/new-console-template for more information
|
||||
|
||||
using System.Net.Http.Json;
|
||||
using ArcaneLibs.Extensions;
|
||||
|
||||
Console.WriteLine("Hello, World!");
|
||||
using var hc = new HttpClient();
|
||||
var response = hc.GetFromJsonAsAsyncEnumerable<object>("http://localhost:5112/users/1183568750931099679/deactivate");
|
||||
await foreach (var item in response) {
|
||||
Console.WriteLine(item.ToJson(indent: false));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user