code format
This commit is contained in:
@ -4,7 +4,6 @@ using System.Linq;
|
|||||||
using System.Security.Claims;
|
using System.Security.Claims;
|
||||||
using Microsoft.AspNet.Authorization;
|
using Microsoft.AspNet.Authorization;
|
||||||
using Microsoft.AspNet.Mvc;
|
using Microsoft.AspNet.Mvc;
|
||||||
using Yavsc.Helpers;
|
|
||||||
using Yavsc.Models;
|
using Yavsc.Models;
|
||||||
|
|
||||||
namespace Yavsc.ApiControllers
|
namespace Yavsc.ApiControllers
|
||||||
@ -44,7 +43,7 @@ namespace Yavsc.ApiControllers
|
|||||||
|
|
||||||
[HttpGet("{*subdir}")]
|
[HttpGet("{*subdir}")]
|
||||||
public IActionResult GetDir(string subdir="")
|
public IActionResult GetDir(string subdir="")
|
||||||
{
|
{
|
||||||
if (subdir !=null)
|
if (subdir !=null)
|
||||||
if (!subdir.IsValidYavscPath())
|
if (!subdir.IsValidYavscPath())
|
||||||
return new BadRequestResult();
|
return new BadRequestResult();
|
||||||
|
Reference in New Issue
Block a user