Add project files.

This commit is contained in:
2021-05-03 01:30:06 +02:00
parent 145740773e
commit a0ce1669ae
71 changed files with 41708 additions and 0 deletions

View File

@ -0,0 +1,29 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HanyadikHetVan.Controllers
{
[Route("api/test")]
[ApiController]
public class TestController : ControllerBase
{
[HttpGet("unprotected")]
public string Unprotected()
{
return "Geci";
}
[Authorize]
[HttpGet("protected")]
public string Protected()
{
return "Gecijo";
}
}
}