isn/src/isnd/Controllers/Packages/ApiIndex.cs

32 lines
857 B
C#
Raw Normal View History

2022-04-17 16:22:40 +01:00
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using NuGet.Versioning;
using isnd.Data;
using isnd.Entities;
using Unleash;
using isnd.Services;
using isnd.ViewModels;
using System.Threading.Tasks;
using isnd.Interfaces;
using isn.Abstract;
2022-09-23 20:34:51 +01:00
using isn.abst;
2022-04-17 16:22:40 +01:00
namespace isnd.Controllers
{
public partial class PackagesController : Controller
{
2022-09-23 20:34:51 +01:00
[HttpGet(_pkgRootPrefix + ApiConfig.IndexDotJson)]
2022-04-17 16:22:40 +01:00
public IActionResult ApiIndex()
{
2022-04-18 20:58:46 +01:00
return Ok(new ApiIndexViewModel{ Version = PackageManager.BASE_API_LEVEL, Resources = resources });
2022-04-17 16:22:40 +01:00
}
}
}