almost done
This commit is contained in:
@@ -51,17 +51,17 @@ public class ApiServerManager : Manager
|
||||
Statics.ChatModule = chatModule;
|
||||
|
||||
_server = new WebServer(o => o
|
||||
.WithUrlPrefix(_config.Listener.UrlPrefix)
|
||||
.WithMicrosoftHttpListener())
|
||||
.WithLocalSessionManager()
|
||||
.WithModule(apiModule
|
||||
.WithController<ServerController>()
|
||||
.WithController<SettingsController>()
|
||||
.WithController<WorldsController>()
|
||||
.WithController<ChatController>())
|
||||
.WithModule(new LogsModule("/api/live/logs", true))
|
||||
.WithModule(chatModule)
|
||||
.WithBearerToken("/api", new SymmetricSecurityKey(Convert.FromBase64String(_config.SecurityKey)), new BasicAuthorizationServerProvider());
|
||||
.WithUrlPrefix(_config.Listener.UrlPrefix)
|
||||
.WithMicrosoftHttpListener())
|
||||
.WithLocalSessionManager()
|
||||
.WithModule(apiModule
|
||||
.WithController<ServerController>()
|
||||
.WithController<SettingsController>()
|
||||
.WithController<WorldsController>()
|
||||
.WithController<ChatController>())
|
||||
.WithModule(new LogsModule("/api/live/logs", true))
|
||||
.WithModule(chatModule)
|
||||
.WithBearerToken("/api", new SymmetricSecurityKey(Convert.FromBase64String(_config.SecurityKey)), new BasicAuthorizationServerProvider());
|
||||
}
|
||||
|
||||
public override void Attach()
|
||||
@@ -92,4 +92,4 @@ public class ApiServerManager : Manager
|
||||
|
||||
return Convert.ToBase64String(aes.Key);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user