mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2025-12-14 01:26:25 +02:00
hotfix redirect system
add auth to create posts and redirects
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
string path = $"{this.Request.Scheme}://{this.Request.Host}";
|
||||
if (Model.Id != 0)
|
||||
{
|
||||
|
||||
//Blogs? Post = Startup.dbContext.Blogs.FirstOrDefault(k => k.Id == Model.Id);
|
||||
var request = await Startup.client.GetAsync(path + "/api/Blog/" + Model.Id);
|
||||
Blogs? Post = JsonConvert.DeserializeObject<Blogs>(request.Content.ReadAsStringAsync().Result);
|
||||
if (Post == null)
|
||||
|
||||
Reference in New Issue
Block a user