add missing endpoint to proxy

This commit is contained in:
Spirtix 2023-08-28 08:43:52 +02:00
parent d0eacb75b6
commit abe674ccf8
2 changed files with 2 additions and 5 deletions

View File

@ -71,7 +71,8 @@ methods = [
'SetAchievementByEntityIDs',
'UseInventory',
'DeleteProfile',
'DeleteAccountNotification'
'DeleteAccountNotification',
'SetUserAchievementAndGetReward',
]
def routable(path):

View File

@ -11,10 +11,6 @@ public class VikingSession : Attribute, IAsyncActionFilter {
public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) {
DBContext ctx = ((AchievementController)context.Controller).ctx;
foreach (var a in context.ActionArguments.Keys) {
Console.WriteLine(a);
}
if (!context.HttpContext.Request.Form.ContainsKey("apiToken")) {
context.Result = new UnauthorizedObjectResult("Unauthorized") { StatusCode = 403 };
return;