Esempio n. 1
0
        public IActionResult PostImage([FromBody] Image image)
        {
            var playerInfo = Utils.CookieUtils.GetPlayerInfoFromRequest(Request);

            ImageStorage.AddImage(image);
            return(Ok());
        }
Esempio n. 2
0
        public ActionResult Post([FromBody] string encodedImage, [FromQuery(Name = "apikey")] string apikey)
        {
            if (apikey != "666")
            {
                return(Forbid());
            }

            ImageStorage.AddImage(encodedImage);
            return(Ok());
        }