-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Redacted-Team/kurt-sprint-5
Kurt sprint 5
- Loading branch information
Showing
10 changed files
with
49 additions
and
66 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.Extensions.Logging; | ||
|
||
using Microsoft.Extensions.Caching.Distributed; | ||
using System.Text.Json; | ||
|
||
namespace Pong | ||
{ | ||
[ApiController] | ||
[Route("[controller]")] | ||
public class PongController : ControllerBase | ||
{ | ||
private static readonly List<GameInfo> TheInfo = new List<GameInfo> | ||
{ | ||
new GameInfo { | ||
Id = 3, | ||
Title = "Pong", | ||
Content = "~/js/pong.js", | ||
Author = "Fall 2023 Semester", | ||
DateAdded = "", | ||
Description = "Pong is a classic arcade game where the player uses a paddle to hit a ball against a computer's paddle. Either party scores when the ball makes it past the opponent's paddle.", | ||
HowTo = "Control with arrow keys.", | ||
Thumbnail = "/images/pong.jpg" | ||
} | ||
|
||
}; | ||
|
||
private readonly ILogger<PongController> _logger; | ||
|
||
public PongController(ILogger<PongController> logger) | ||
{ | ||
_logger = logger; | ||
} | ||
|
||
[HttpGet] | ||
public IEnumerable<GameInfo> Get() | ||
{ | ||
return TheInfo; | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.