23 lines
527 B
C#
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);
|
|
}
|
|
}
|