Changeset e49c3ed for iknow-api/Controllers/AuthController.cs
- Timestamp:
- 10/26/25 20:52:35 (11 months ago)
- Branches:
- master
- Children:
- 3347c1b, c2e73b6, cab02ad
- Parents:
- 9538edc
- File:
-
- 1 edited
-
iknow-api/Controllers/AuthController.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Controllers/AuthController.cs
r9538edc re49c3ed 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.
