pobieranie tokenu
This commit is contained in:
parent
9f395ac634
commit
034383cadf
@ -166,7 +166,7 @@ namespace FirmTracker_Server.Controllers
|
||||
[HttpGet]
|
||||
[ProducesResponseType(200)] // Created
|
||||
[ProducesResponseType(400)] // Bad Request
|
||||
[Authorize(Roles =Roles.User)]
|
||||
[Authorize(Roles =Roles.Admin)]
|
||||
public IActionResult GetAllProducts()
|
||||
{
|
||||
var products = _productCrud.GetAllProducts();
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
},
|
||||
"TokenConfig": {
|
||||
"JwtSecKey": "omgi5Rf4tqg351GQwefw",
|
||||
"JwtSecKey": "omgi5Rf4tqg351GQwefw1234567890123456",
|
||||
"JwtExpireDays": 30,
|
||||
"JwtIssuer": "http://api.graphcom.pl"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user