Skip to content

Commit

Permalink
Finished #739
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie.Rees authored and Jamie.Rees committed Jan 17, 2017
1 parent 9736883 commit 809d010
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Ombi.Api/DiscordApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public void SendMessage(string message, string webhookId, string webhookToken, s
{
var request = new RestRequest
{
Resource = "webhooks/{webhookId}/{webhookToken}"
Resource = "webhooks/{webhookId}/{webhookToken}",
Method = Method.POST
};

request.AddUrlSegment("webhookId", webhookId);
Expand All @@ -72,7 +73,8 @@ public async Task SendMessageAsync(string message, string webhookId, string webh
{
var request = new RestRequest
{
Resource = "webhooks/{webhookId}/{webhookToken}"
Resource = "webhooks/{webhookId}/{webhookToken}",
Method = Method.POST
};

request.AddUrlSegment("webhookId", webhookId);
Expand Down
1 change: 1 addition & 0 deletions Ombi.UI/NinjectModules/ApiModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public override void Load()
Bind<IApiRequest>().To<ApiRequest>();
Bind<IWatcherApi>().To<WatcherApi>();
Bind<INetflixApi>().To<NetflixRouletteApi>();
Bind<IDiscordApi>().To<DiscordApi>();
}
}
}

0 comments on commit 809d010

Please sign in to comment.