mirror of
https://github.com/ppy/osu.git
synced 2026-05-24 10:10:15 +08:00
Switch add beatmap tag request to using path paramx
See https://github.com/ppy/osu-web/pull/11999.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System.Globalization;
|
||||
using System.Net.Http;
|
||||
using osu.Framework.IO.Network;
|
||||
|
||||
@@ -22,10 +21,9 @@ namespace osu.Game.Online.API.Requests
|
||||
{
|
||||
var req = base.CreateWebRequest();
|
||||
req.Method = HttpMethod.Post;
|
||||
req.AddParameter(@"tag_id", TagID.ToString(CultureInfo.InvariantCulture), RequestParameterType.Query);
|
||||
return req;
|
||||
}
|
||||
|
||||
protected override string Target => $@"beatmaps/{BeatmapID}/tags";
|
||||
protected override string Target => $@"beatmaps/{BeatmapID}/tags/{TagID}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user