28 lines
632 B
C#
28 lines
632 B
C#
namespace DynamicBinaryStream.Controllers;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
public class RootMenu : Controller
|
|
{
|
|
[HttpGet("/menu")]
|
|
public ContentResult GetMenu()
|
|
{
|
|
return
|
|
new ContentResult()
|
|
{
|
|
ContentType = "text/html",
|
|
Content =
|
|
@"<html>
|
|
<head>
|
|
<title>ASP.NET Core Streaming Sample - Asynchronous using System.text.Json</title>
|
|
</head>
|
|
<body>
|
|
<h1>ASP.NET Core Streaming Sample</h1>
|
|
<h2>Dynamic Binary Stream</h2>
|
|
<a href=""/v1/sing"" target=""_blank"">/v1/sing – Get song lyrics</a>
|
|
</body>
|
|
</html>"
|
|
};
|
|
}
|
|
}
|