medicalHistory: deletion when patient is deleted

This commit is contained in:
andrei-mihnea-cerbu
2024-04-08 22:06:01 +03:00
parent 13bfa2bdd9
commit 7b24c178b3
62 changed files with 321 additions and 356 deletions
+4 -8
View File
@@ -1,18 +1,14 @@
using System.Text.Json;
using Application.Endpoints;
using Application.Services.Jwt;
namespace API.Middlewares;
using Microsoft.AspNetCore.Http;
using System.Threading.Tasks;
using System.Linq;
using Application.Services.Jwt;
public class JwtMiddleware
{
private readonly RequestDelegate _next;
private readonly IJwtService _jwtService;
private readonly RequestDelegate _next;
public JwtMiddleware(RequestDelegate next, IJwtService jwtService)
{
_next = next;
@@ -24,7 +20,7 @@ public class JwtMiddleware
var path = context.Request.Path.ToString().ToLower();
// Define the paths that should bypass JWT validation
var bypassPaths = new string[]
var bypassPaths = new[]
{
"/api/doctors/login",
"/api/doctors/register",