mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2025-12-13 17:16:26 +02:00
Add caching all data from backend and change getting readme data from page(Index.cshtml) to api(HomeController.cs) with cache readme file
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
<h3 align="left" class="readme" >README.md</h3>
|
||||
|
||||
@{
|
||||
string Github_readme = Startup.client.GetStringAsync(Startup.readmeFile).Result;
|
||||
string path = $"{this.Request.Scheme}://{this.Request.Host}";
|
||||
string Github_readme = Startup.client.GetStringAsync($"{path}/api/Index").Result;
|
||||
<div class="text"> @Html.Raw(Github_readme) </div>
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user