bitget asp 서버 추가

This commit is contained in:
DESKTOP-F6681KC\llk
2024-06-02 19:32:08 +09:00
parent 4db5a85e55
commit 1be2f7c5a7
15 changed files with 345 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
using Bitget_Server.EFCore.Models;
using Bitget_Server.EFCore;
using Microsoft.AspNetCore.Mvc;
namespace Bitget_Server.Controller
{
[ApiController, Route("api/push")]
public class PushAlarmController : ControllerBase
{
private readonly BitgetContext context;
public PushAlarmController(BitgetContext _context)
{
context = _context;
}
[HttpGet, Route("newalarm")]
public List<PushAlarm> GetAlarm(int index)
{
return context.PushAlarms.Where(x => x.Id > index).ToList();
}
}
}