Browse Source

оформление

master
Sergey Verevkin 4 years ago
parent
commit
604730baa2
  1. 42
      .idea/.idea.ooya.ga_api/.idea/workspace.xml
  2. 1
      Model/Game.cs
  3. 2
      Model/Witch.cs
  4. 6
      Program.cs
  5. 4
      README.md

42
.idea/.idea.ooya.ga_api/.idea/workspace.xml

@ -8,24 +8,11 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="97a4fbc7-90e8-4882-8129-7938d939c953" name="Changes" comment="">
<change afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/.idea.ooya.ga_api/.idea/encodings.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/.idea.ooya.ga_api/.idea/indexLayout.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/.idea.ooya.ga_api/.idea/projectSettingsUpdater.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/.idea.ooya.ga_api/.idea/vcs.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Controllers/ApiController.cs" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Model/Game.cs" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Model/GameDto.cs" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Model/Mapper.cs" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Model/Witch.cs" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Model/WitchDto.cs" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Program.cs" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Properties/launchSettings.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/appsettings.Development.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/appsettings.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ooya.ga_api.csproj" afterDir="false" />
<change afterPath="$PROJECT_DIR$/ooya.ga_api.sln" afterDir="false" />
<list default="true" id="97a4fbc7-90e8-4882-8129-7938d939c953" name="Changes" comment="1">
<change beforePath="$PROJECT_DIR$/.idea/.idea.ooya.ga_api/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.ooya.ga_api/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Model/Game.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Model/Game.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Model/Witch.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Model/Witch.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Program.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Program.cs" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -98,7 +85,23 @@
<option name="presentableId" value="Default" />
<updated>1644119899867</updated>
<workItem from="1644119909814" duration="2390000" />
<workItem from="1644122387861" duration="1003000" />
</task>
<task id="LOCAL-00001" summary="initial commit">
<created>1644122446722</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1644122446722</updated>
</task>
<task id="LOCAL-00002" summary="1">
<created>1644122475392</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1644122475392</updated>
</task>
<option name="localTasksCounter" value="3" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@ -119,5 +122,8 @@
<option name="CHECK_NEW_TODO" value="false" />
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="true" />
<MESSAGE value="initial commit" />
<MESSAGE value="1" />
<option name="LAST_COMMIT_MESSAGE" value="1" />
</component>
</project>

1
Model/Game.cs

@ -34,6 +34,7 @@ public class Game
/// <param name="score">первоначальное количество очков</param>
public Game(int score = 0)
{
Guid = (System.Guid.NewGuid()).ToString("N");
Date = DateTime.Now;
Score = score;
Witches = new List<Witch>();

2
Model/Witch.cs

@ -29,7 +29,7 @@ public class Witch
/// <param name="position"></param>
public Witch(int position)
{
Guid = (new Guid()).ToString("N");
Guid = (System.Guid.NewGuid()).ToString("N");
Position = position;
FlagReal = false;
}

6
Program.cs

@ -16,6 +16,12 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI();
}
app.UseCors(builder => builder
.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader());
app.UseHttpsRedirection();
app.UseAuthorization();

4
README.md

@ -1,2 +1,6 @@
# ooya.ga-api
Сервис обслуживания сайта http://www.ooya.ga/
- хостинг https://localhost:7115/api/v1
- прием CORS от любых адресов
Loading…
Cancel
Save