mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-12 00:38:48 -07:00
Update Program.cs
This commit is contained in:
parent
489f262116
commit
3de3367fb7
@ -11,6 +11,13 @@ using System.Net;
|
|||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
// Add services to the container.
|
// Add services to the container.
|
||||||
|
bool ConsoleOptions = builder.Configuration.GetSection("ConsoleOptions").GetValue<bool>("Show logs");
|
||||||
|
|
||||||
|
// shows information about loading assets/api stuff
|
||||||
|
if (ConsoleOptions == true)
|
||||||
|
{
|
||||||
|
VerboseLogging.log();
|
||||||
|
}
|
||||||
|
|
||||||
builder.Services.Configure<AssetServerConfig>(builder.Configuration.GetSection("AssetServer"));
|
builder.Services.Configure<AssetServerConfig>(builder.Configuration.GetSection("AssetServer"));
|
||||||
builder.Services.Configure<ApiServerConfig>(builder.Configuration.GetSection("ApiServer"));
|
builder.Services.Configure<ApiServerConfig>(builder.Configuration.GetSection("ApiServer"));
|
||||||
@ -66,4 +73,8 @@ app.UseAuthorization();
|
|||||||
|
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|
||||||
|
// Shows message that server started
|
||||||
|
VerboseLogging.ServerStartedMessage();
|
||||||
|
OpenGamePrompt.prompt();
|
||||||
|
PrintInfo.print();
|
||||||
app.Run();
|
app.Run();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user