mirror of
https://github.com/gnh1201/welsonjs.git
synced 2026-04-18 18:18:42 +00:00
Move API endpoints to ApiEndpoints namespace
Refactored all API endpoint classes from the ResourceTools namespace to the ApiEndpoints namespace for improved clarity and organization. Updated all references in ResourceServer to use the new namespace.
This commit is contained in:
parent
c98fcfea10
commit
7b2a2d49d0
|
|
@ -11,7 +11,7 @@ using System.Net.Http;
|
|||
using System.Security;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WelsonJS.Launcher.ResourceTools
|
||||
namespace WelsonJS.Launcher.ApiEndpoints
|
||||
{
|
||||
public class ChromiumDevTools : IApiEndpoint
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ using System.Net.Http;
|
|||
using System.Collections.Concurrent;
|
||||
using log4net;
|
||||
|
||||
namespace WelsonJS.Launcher.ResourceTools
|
||||
namespace WelsonJS.Launcher.ApiEndpoints
|
||||
{
|
||||
public class Completion : IApiEndpoint
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ using System.Net.Sockets;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WelsonJS.Launcher.ResourceTools
|
||||
namespace WelsonJS.Launcher.ApiEndpoints
|
||||
{
|
||||
public class DnsQuery : IApiEndpoint
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ using System.Net.Http;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WelsonJS.Launcher.ResourceTools
|
||||
namespace WelsonJS.Launcher.ApiEndpoints
|
||||
{
|
||||
/// <summary>
|
||||
/// POST image-color-picker/ with a unified JSON body:
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ using System.Threading.Tasks;
|
|||
using System.Web;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace WelsonJS.Launcher.ResourceTools
|
||||
namespace WelsonJS.Launcher.ApiEndpoints
|
||||
{
|
||||
public class IpQuery : IApiEndpoint
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ using System.Resources;
|
|||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace WelsonJS.Launcher.ResourceTools
|
||||
namespace WelsonJS.Launcher.ApiEndpoints
|
||||
{
|
||||
public class Settings : IApiEndpoint
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ using System.Security.Cryptography;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WelsonJS.Launcher.ResourceTools
|
||||
namespace WelsonJS.Launcher.ApiEndpoints
|
||||
{
|
||||
public class TwoFactorAuth : IApiEndpoint
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ using System.Net.Http;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WelsonJS.Launcher.ResourceTools
|
||||
namespace WelsonJS.Launcher.ApiEndpoints
|
||||
{
|
||||
public class Whois : IApiEndpoint
|
||||
{
|
||||
|
|
|
|||
|
|
@ -67,14 +67,14 @@ namespace WelsonJS.Launcher
|
|||
}, TaskScheduler.Default);
|
||||
|
||||
// Add API endpoints
|
||||
_apis.Add(new ResourceTools.Completion(this, _httpClient, _logger));
|
||||
_apis.Add(new ResourceTools.Settings(this, _httpClient, _logger));
|
||||
_apis.Add(new ResourceTools.ChromiumDevTools(this, _httpClient, _logger));
|
||||
_apis.Add(new ResourceTools.DnsQuery(this, _httpClient, _logger));
|
||||
_apis.Add(new ResourceTools.IpQuery(this, _httpClient, _logger));
|
||||
_apis.Add(new ResourceTools.TwoFactorAuth(this, _httpClient, _logger));
|
||||
_apis.Add(new ResourceTools.Whois(this, _httpClient, _logger));
|
||||
_apis.Add(new ResourceTools.ImageColorPicker(this, _httpClient, _logger));
|
||||
_apis.Add(new ApiEndpoints.Completion(this, _httpClient, _logger));
|
||||
_apis.Add(new ApiEndpoints.Settings(this, _httpClient, _logger));
|
||||
_apis.Add(new ApiEndpoints.ChromiumDevTools(this, _httpClient, _logger));
|
||||
_apis.Add(new ApiEndpoints.DnsQuery(this, _httpClient, _logger));
|
||||
_apis.Add(new ApiEndpoints.IpQuery(this, _httpClient, _logger));
|
||||
_apis.Add(new ApiEndpoints.TwoFactorAuth(this, _httpClient, _logger));
|
||||
_apis.Add(new ApiEndpoints.Whois(this, _httpClient, _logger));
|
||||
_apis.Add(new ApiEndpoints.ImageColorPicker(this, _httpClient, _logger));
|
||||
|
||||
// Register the prefix
|
||||
_listener.Prefixes.Add(prefix);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user