public IActionResult PostImage([FromBody] Image image) { var playerInfo = Utils.CookieUtils.GetPlayerInfoFromRequest(Request); ImageStorage.AddImage(image); return(Ok()); }
public ActionResult Post([FromBody] string encodedImage, [FromQuery(Name = "apikey")] string apikey) { if (apikey != "666") { return(Forbid()); } ImageStorage.AddImage(encodedImage); return(Ok()); }