Files
Akari.Prototype/Akari.Prototype.Server/Services/AkariPath.cs
Eveldee 2b81f3e5ba Add AuthLifetimeService
Refactor AuthManager
2021-06-04 18:32:47 +02:00

23 lines
527 B
C#

using Akari.Prototype.Server.Options;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace Akari.Prototype.Server.Services
{
public class AkariPath
{
private readonly AkariOptions _options;
public AkariPath(IOptions<AkariOptions> options)
{
_options = options.Value;
}
public string GetPath(string path) => Path.Combine(_options.DataPath, path);
}
}