CSharp-Single-EFCore/Bunny.WebApi/Controllers/IndexController.cs

21 lines
568 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Microsoft.AspNetCore.Mvc;
namespace Bunny.WebApi.Controllers;
/// <summary>
/// 主页请求
/// </summary>
[ApiController]
[Route("/")]
public class IndexController : ControllerBase
{
/// <summary>
/// 请求主页面响应内容
/// </summary>
/// <returns></returns>
[HttpGet("")]
public IActionResult Index()
{
return Ok("看到这里页面说明你已经成功启动了本项目:)\n\n如果觉得项目有用打赏作者喝杯咖啡作为奖励>>https://gitee.com/BunnyBoss/csharp-single-efcore");
}
}