mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 11:35:51 +01:00
22 lines
900 B
C#
22 lines
900 B
C#
using BTCPayServer.Abstractions.Contracts;
|
|
using BTCPayServer.Abstractions.Models;
|
|
using BTCPayServer.Abstractions.Services;
|
|
using BTCPayServer.Services.Apps;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using static BTCPayServer.Plugins.BoltcardFactory.BoltcardFactoryPlugin;
|
|
|
|
namespace BTCPayServer.Plugins.BoltcardTopUp;
|
|
|
|
public class BoltcardTopUpPlugin : BaseBTCPayServerPlugin
|
|
{
|
|
public const string ViewsDirectory = "/Plugins/BoltcardTopUp/Views";
|
|
public override string Identifier => "BTCPayServer.Plugins.BoltcardTopUp";
|
|
public override string Name => "BoltcardTopUp";
|
|
public override string Description => "Add the ability to Top-Up a Boltcard";
|
|
|
|
public override void Execute(IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IUIExtension>(new UIExtension($"{ViewsDirectory}/NavExtension.cshtml", "header-nav"));
|
|
base.Execute(services);
|
|
}
|
|
}
|