Browse Source

Added BlogFilesController

pull/870/head
Halil ibrahim Kalkan 8 years ago
parent
commit
590c68d678
  1. 27
      modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/BlogFilesController.cs

27
modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/BlogFilesController.cs

@ -0,0 +1,27 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Blogging.Files;
namespace Volo.Blogging
{
[RemoteService]
[Area("blogging")]
[Route("api/blogging/files")]
public class BlogFilesController : AbpController, IFileAppService
{
private readonly IFileAppService _fileAppService;
public BlogFilesController(IFileAppService fileAppService)
{
_fileAppService = fileAppService;
}
[HttpPost]
public Task<FileUploadOutputDto> UploadAsync(FileUploadInputDto input)
{
return _fileAppService.UploadAsync(input);
}
}
}
Loading…
Cancel
Save