diff --git a/DysonNetwork.Sphere/Translation/TranslationController.cs b/DysonNetwork.Sphere/Translation/TranslationController.cs index a154127..639a0a4 100644 --- a/DysonNetwork.Sphere/Translation/TranslationController.cs +++ b/DysonNetwork.Sphere/Translation/TranslationController.cs @@ -24,8 +24,8 @@ public class TranslationController(ITranslationProvider provider, ICacheService [Authorize] public async Task> Translate( [FromBody] string text, - [FromQuery(Name = "from")] string targetLanguage, - [FromQuery(Name = "to")] string? sourceLanguage + [FromQuery(Name = "to")] string targetLanguage, + [FromQuery(Name = "from")] string? sourceLanguage ) { if (HttpContext.Items["CurrentUser"] is not Account currentUser) return Unauthorized();