mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Updated documentation.
This commit is contained in:
@@ -159,12 +159,31 @@ namespace DiscImageChef.Server.Controllers
|
||||
return View();
|
||||
}
|
||||
|
||||
[Route("DONATING")]
|
||||
public ActionResult DONATING()
|
||||
[Route("DONATING"), Route("NEEDED")]
|
||||
public ActionResult Needed()
|
||||
{
|
||||
var sr =
|
||||
new StreamReader(Path.Combine(_environment.ContentRootPath ?? throw new InvalidOperationException(),
|
||||
"docs", "DONATING.md"));
|
||||
"docs", "NEEDED.md"));
|
||||
|
||||
string mdcontent = sr.ReadToEnd();
|
||||
sr.Close();
|
||||
|
||||
mdcontent = mdcontent.Replace(".md)", ")");
|
||||
|
||||
ViewBag.Markdown = Markdown.ToHtml(mdcontent);
|
||||
|
||||
ViewBag.lblVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
[Route("NEEDINFO")]
|
||||
public ActionResult NeedInfo()
|
||||
{
|
||||
var sr =
|
||||
new StreamReader(Path.Combine(_environment.ContentRootPath ?? throw new InvalidOperationException(),
|
||||
"docs", "NEEDINFO.md"));
|
||||
|
||||
string mdcontent = sr.ReadToEnd();
|
||||
sr.Close();
|
||||
|
||||
Reference in New Issue
Block a user