Infrastructure/Bus.Controllers/DroneCaseInfoController.cs

34 lines
668 B
C#

using Bus.App;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using OpenAuth.Repository.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bus.Controllers
{
[Route("api/[controller]/[action]")]
[ApiController]
public class DroneCaseInfoController : ControllerBase
{
[AllowAnonymous]
[HttpGet]
public string Test()
{
return "hi";
}
[AllowAnonymous]
[HttpPost]
public string haha(PassportLoginRequest d)
{
return d.AppKey;
}
}
}