xf 1 рік тому
батько
коміт
b46d246e26
1 змінених файлів з 7 додано та 0 видалено
  1. 7 0
      src/FileStorage.Host/Controllers/FileController.cs

+ 7 - 0
src/FileStorage.Host/Controllers/FileController.cs

@@ -108,5 +108,12 @@ namespace FileStorage.Host.Controllers
 	        var fullPath = await _fileStorage.GetFilePathIndefinitely(id, expires, clientid, signature);
 	        await HttpContext.Response.SendFileAsync(fullPath);
         }
+
+        [HttpGet("test")]
+        [AllowAnonymous]
+        public string Test()
+        {
+            return DateTime.Now.ToString();
+        }
 	}
 }