Fix router address to action

This commit is contained in:
Ling 2024-10-09 17:09:38 +08:00
parent 9757cbea45
commit 22fbb522d2
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Mvc;
namespace LFlow.Home.Controllers;
public class HomeController(IHomeService<HomeDto, string> service) : BaseController
{
[HttpGet("/[controller]/")]
[HttpGet]
public string Home(string id)
{
return service?.GetById(id)?.ToString() ?? "No service";