git for admin only ...
This commit is contained in:
parent
06870fc4f2
commit
f57f009175
2 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Authorization;
|
||||
using Microsoft.AspNet.Http;
|
||||
using Microsoft.AspNet.Mvc;
|
||||
using Microsoft.Data.Entity;
|
||||
|
|
@ -11,6 +12,7 @@ namespace Yavsc.Controllers
|
|||
{
|
||||
[Produces("application/json")]
|
||||
[Route("api/GitRefsApi")]
|
||||
[Authorize("AdministratorOnly")]
|
||||
public class GitRefsApiController : Controller
|
||||
{
|
||||
private ApplicationDbContext _context;
|
||||
Loading…
Add table
Add a link
Reference in a new issue