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:
Namhyeon, Go 2026-01-31 23:26:36 +09:00
parent c98fcfea10
commit 7b2a2d49d0
9 changed files with 16 additions and 16 deletions

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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:

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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);