diff --git a/.idea/.idea.ooya.ga_api/.idea/workspace.xml b/.idea/.idea.ooya.ga_api/.idea/workspace.xml
index 580a097..b86af60 100644
--- a/.idea/.idea.ooya.ga_api/.idea/workspace.xml
+++ b/.idea/.idea.ooya.ga_api/.idea/workspace.xml
@@ -8,24 +8,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
@@ -98,7 +85,23 @@
1644119899867
+
+
+ 1644122446722
+
+
+
+ 1644122446722
+
+
+ 1644122475392
+
+
+
+ 1644122475392
+
+
@@ -119,5 +122,8 @@
+
+
+
\ No newline at end of file
diff --git a/Model/Game.cs b/Model/Game.cs
index f5cff0d..509d439 100644
--- a/Model/Game.cs
+++ b/Model/Game.cs
@@ -34,6 +34,7 @@ public class Game
/// первоначальное количество очков
public Game(int score = 0)
{
+ Guid = (System.Guid.NewGuid()).ToString("N");
Date = DateTime.Now;
Score = score;
Witches = new List();
diff --git a/Model/Witch.cs b/Model/Witch.cs
index ac8dbdf..fa5a24d 100644
--- a/Model/Witch.cs
+++ b/Model/Witch.cs
@@ -29,7 +29,7 @@ public class Witch
///
public Witch(int position)
{
- Guid = (new Guid()).ToString("N");
+ Guid = (System.Guid.NewGuid()).ToString("N");
Position = position;
FlagReal = false;
}
diff --git a/Program.cs b/Program.cs
index 8264bac..4954f63 100644
--- a/Program.cs
+++ b/Program.cs
@@ -16,6 +16,12 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI();
}
+
+app.UseCors(builder => builder
+ .AllowAnyOrigin()
+ .AllowAnyMethod()
+ .AllowAnyHeader());
+
app.UseHttpsRedirection();
app.UseAuthorization();
diff --git a/README.md b/README.md
index f8fbe27..94b378d 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,6 @@
# ooya.ga-api
+Сервис обслуживания сайта http://www.ooya.ga/
+
+ - хостинг https://localhost:7115/api/v1
+ - прием CORS от любых адресов
\ No newline at end of file