ci & admin & auth & cli
This commit is contained in:
parent
981f3209e0
commit
5cb35f54d5
12 changed files with 143 additions and 34 deletions
17
src/nuget-host/Controllers/NewUpdateController.cs
Normal file
17
src/nuget-host/Controllers/NewUpdateController.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using nuget_host.Data;
|
||||
|
||||
namespace nuget_host.Controllers
|
||||
{
|
||||
|
||||
public class NewUpdateController : Controller
|
||||
{
|
||||
[Authorize(Policy = Constants.RequireAdminPolicyName)]
|
||||
public IActionResult NewRelease(NewReleaseInfo version)
|
||||
{
|
||||
return View(version);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue