implement players section

This commit is contained in:
zznty
2022-10-04 20:25:14 +07:00
parent fd2c272148
commit 5fa6cc52bb
4 changed files with 78 additions and 1 deletions

View File

@@ -60,7 +60,8 @@ public class ApiServerManager : Manager
.WithController<WorldsController>()
.WithController<ChatController>()
.WithController<PluginsController>()
.WithController<PluginDownloadsController>())
.WithController<PluginDownloadsController>()
.WithController<PlayersController>())
.WithModule(new LogsModule("/api/live/logs", true))
.WithModule(chatModule)
.WithBearerToken("/api", new SymmetricSecurityKey(Convert.FromBase64String(_config.SecurityKey)), new BasicAuthorizationServerProvider());