mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 13:36:50 +01:00
C#8 upgrade
This commit is contained in:
@@ -197,7 +197,7 @@ namespace Tgstation.Server.Host.Core
|
||||
|
||||
if (hostingEnvironment.IsDevelopment())
|
||||
{
|
||||
string GetDocumentationFilePath(string assemblyLocation) => IOManager.ConcatPath(IOManager.GetDirectoryName(assemblyLocation), String.Concat(IOManager.GetFileNameWithoutExtension(assemblyLocation), ".xml"));
|
||||
static string GetDocumentationFilePath(string assemblyLocation) => IOManager.ConcatPath(IOManager.GetDirectoryName(assemblyLocation), String.Concat(IOManager.GetFileNameWithoutExtension(assemblyLocation), ".xml"));
|
||||
var assemblyDocumentationPath = GetDocumentationFilePath(typeof(Application).Assembly.Location);
|
||||
var apiDocumentationPath = GetDocumentationFilePath(typeof(ApiHeaders).Assembly.Location);
|
||||
services.AddSwaggerGen(genOptions => SwaggerConfiguration.Configure(genOptions, assemblyDocumentationPath, apiDocumentationPath));
|
||||
|
||||
Reference in New Issue
Block a user