Files
LaDOSE/LaDOSE.Src/LaDOSE.Api/Controllers/ValuesController.cs
2018-10-04 21:18:18 +02:00

28 lines
611 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace LaDOSE.Api.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class ConfigController : ControllerBase
{
// GET api/Config
[HttpGet]
public ActionResult<IEnumerable<string>> Get()
{
return new string[] { "value1", "value2" };
}
// GET api/Config/5
[HttpGet("{id}")]
public ActionResult<string> Get(int id)
{
return "value";
}
}
}