Skip to content

Commit fc60dfe

Browse files
committed
Adding Platform detection API
1 parent 24b5fca commit fc60dfe

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System.Runtime.InteropServices;
2+
using Microsoft.AspNetCore.Mvc;
3+
4+
namespace Chores
5+
{
6+
[Route("/api/[controller]")]
7+
public class PlatformController : Controller
8+
{
9+
[HttpGet]
10+
public string Get()
11+
{
12+
return RuntimeInformation.OSDescription;
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)