Remove redundant code
This commit is contained in:
parent
dd9cf3c5d7
commit
21f813d342
12 changed files with 19 additions and 29 deletions
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Geekbot.net.WebApi.Controllers.Commands
|
||||
{
|
||||
|
|
|
@ -29,11 +29,11 @@ namespace Geekbot.net.WebApi
|
|||
.ConfigureServices(services =>
|
||||
{
|
||||
services.AddMvc();
|
||||
services.AddSingleton<CommandService>(commandService);
|
||||
services.AddSingleton<DatabaseContext>(databaseContext);
|
||||
services.AddSingleton<DiscordSocketClient>(client);
|
||||
services.AddSingleton<IGlobalSettings>(globalSettings);
|
||||
services.AddSingleton<IHighscoreManager>(highscoreManager);
|
||||
services.AddSingleton(commandService);
|
||||
services.AddSingleton(databaseContext);
|
||||
services.AddSingleton(client);
|
||||
services.AddSingleton(globalSettings);
|
||||
services.AddSingleton(highscoreManager);
|
||||
services.AddCors(options =>
|
||||
{
|
||||
options.AddPolicy("AllowSpecificOrigin",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue