| | |
| | | using Microsoft.AspNetCore.Mvc.Controllers; |
| | | using Furion.Authorization; |
| | | |
| | | namespace Yw.WebApi |
| | | namespace IStation.WebApi |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | options.MaxRequestBodySize = int.MaxValue; |
| | | }); |
| | | |
| | | //检查 权限 |
| | | //services.AddJwt<JwtHandler>(enableGlobalAuthorize: true); |
| | | |
| | | services.AddCorsAccessor(); |
| | |
| | | |
| | | //app.UseStaticFiles(); |
| | | string path = AppContext.BaseDirectory; |
| | | path = Path.Combine(path, Settings.ServiceParasHelper.Service.DataFolder); |
| | | path = Path.Combine(path, "Data"); |
| | | if (!Directory.Exists(path)) |
| | | { |
| | | Directory.CreateDirectory(path); |