31 lines
833 B
C#
31 lines
833 B
C#
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;
|
|
|
|
namespace isnd.Controllers
|
|
{
|
|
public partial class PackagesController : Controller
|
|
{
|
|
[HttpGet(_pkgRootPrefix + ApiConfig.Base)]
|
|
public IActionResult ApiIndex()
|
|
{
|
|
return Ok(new ApiIndexViewModel{ Version = PackageManager.BASE_API_LEVEL, Resources = resources });
|
|
}
|
|
}
|
|
|
|
} |