mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 22:20:52 +00:00
Make IWebInterface work on netf
This commit is contained in:
@@ -101,7 +101,6 @@ internal sealed class Startup {
|
||||
// Add support for default root path redirection (GET / -> GET /index.html), must come before static files
|
||||
app.UseDefaultFiles();
|
||||
|
||||
#if !NETFRAMEWORK && !NETSTANDARD
|
||||
Dictionary<string, string> pluginPaths = new(StringComparer.Ordinal);
|
||||
|
||||
if (PluginsCore.ActivePlugins?.Count > 0) {
|
||||
@@ -139,7 +138,6 @@ internal sealed class Startup {
|
||||
}
|
||||
);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Add support for static files (e.g. HTML, CSS and JS from IPC GUI)
|
||||
app.UseStaticFiles(
|
||||
|
||||
@@ -23,7 +23,6 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace ArchiSteamFarm.Plugins.Interfaces;
|
||||
|
||||
#if !NETFRAMEWORK && !NETSTANDARD
|
||||
public interface IWebInterface : IPlugin {
|
||||
/// <summary>
|
||||
/// Specifies physical path to static WWW files provided by the plugin. Can be either relative to plugin's assembly location, or absolute. Default "www" value assumes that you ship "www" directory together with your plugin's main DLL assembly, similar to ASF.
|
||||
@@ -36,4 +35,3 @@ public interface IWebInterface : IPlugin {
|
||||
[JsonProperty]
|
||||
string WebPath => "/";
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net481' OR '$(TargetFramework)' == 'netstandard2.1'">
|
||||
<PackageVersion Include="JustArchiNET.Madness" Version="3.11.0" />
|
||||
<PackageVersion Include="JustArchiNET.Madness" Version="3.12.0" />
|
||||
<PackageVersion Include="Microsoft.AspNetCore.Cors" Version="2.2.0" />
|
||||
<PackageVersion Include="Microsoft.AspNetCore.Diagnostics" Version="2.2.0" />
|
||||
<PackageVersion Include="Microsoft.AspNetCore.HttpOverrides" Version="2.2.0" />
|
||||
|
||||
Reference in New Issue
Block a user