Files
PetriePanel/WebAPI/Controllers/HelloWorldController.cs

29 lines
748 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WebAPI.Data;
namespace WebAPI.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class HelloWorldController : ControllerBase
{
private readonly PterodactylService _pterodactylService;
public HelloWorldController(PterodactylService pterodactylService)
{
_pterodactylService = pterodactylService;
}
[HttpGet]
public async Task<string> HelloWorld()
{
await Task.Delay(5000);
return AppSettings.PterodactylAPIKey;
}
}
}