Skip to content

Commit 440235a

Browse files
Merge pull request #18 from ScriptSage001/master
Added Caching, Added API Version and Improved Swagger Doc
2 parents 2422a1e + f41997b commit 440235a

26 files changed

Lines changed: 887 additions & 338 deletions

.github/workflows/qodana_code_quality.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- name: 'Qodana Scan'
2222
uses: JetBrains/qodana-action@v2024.1
2323
with:
24-
args: -b qodana.sarif.json,--apply-fixes
24+
# args: -b qodana.sarif.json,--apply-fixes
25+
args: --baseline,qodana.sarif.json
2526
pr-mode: false
2627
push-fixes: pull-request
2728
env:

Shortify.NET.API/BaseApiController.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,12 @@ protected IActionResult HandleUnauthorizedRequest()
8888

8989
protected string GetUser()
9090
{
91-
var userIdClaims = User.Claims.FirstOrDefault(c => c.Type.Equals("UserId", StringComparison.OrdinalIgnoreCase));
91+
var userIdClaims = User
92+
.Claims
93+
.FirstOrDefault(c =>
94+
c.Type.Equals("UserId", StringComparison.OrdinalIgnoreCase));
9295

93-
if (userIdClaims is null)
94-
{
95-
return string.Empty;
96-
}
97-
98-
return userIdClaims.Value;
96+
return userIdClaims is null ? string.Empty : userIdClaims.Value;
9997
}
10098
}
10199
}

Shortify.NET.API/Controllers/MonitorController.cs

Lines changed: 0 additions & 27 deletions
This file was deleted.

Shortify.NET.API/Controllers/ShortController.cs

Lines changed: 0 additions & 157 deletions
This file was deleted.

Shortify.NET.API/Controllers/UserController.cs

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)