Changeset 5eb7847 for iknow-api/Controllers/AuthController.cs
- Timestamp:
- 10/26/25 20:52:35 (11 months ago)
- Branches:
- master
- Children:
- 28759eb, 4e061d8, 4f5d8fd
- Parents:
- 8e32210
- File:
-
- 1 edited
-
iknow-api/Controllers/AuthController.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Controllers/AuthController.cs
r8e32210 r5eb7847 1 1 using iknow_api.DTOs; 2 2 using iknow_api.Services; 3 using Microsoft.AspNetCore.Authorization; 4 using Microsoft.AspNetCore.Authentication.JwtBearer; 3 5 using Microsoft.AspNetCore.Mvc; 4 6 … … 45 47 return Ok(new { Token = token }); 46 48 } 49 50 [Authorize] 51 [HttpGet("getstring")] 52 public async Task<IActionResult> getstring() 53 { 54 return Ok(new { message = "You are authorized!" }); 55 } 47 56 } 48 57 }
Note:
See TracChangeset
for help on using the changeset viewer.
