From 590c68d67850b80b366d69a8a24843aa8bf4c570 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Thu, 7 Mar 2019 11:25:20 +0300 Subject: [PATCH] Added BlogFilesController --- .../Volo/Blogging/BlogFilesController.cs | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/BlogFilesController.cs diff --git a/modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/BlogFilesController.cs b/modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/BlogFilesController.cs new file mode 100644 index 0000000000..48f15e8657 --- /dev/null +++ b/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 UploadAsync(FileUploadInputDto input) + { + return _fileAppService.UploadAsync(input); + } + } +}