Add comprehensive project documentation for ClinicPro in CLAUDE.md and README.md

- Introduced CLAUDE.md for internal guidance on project structure, commands, and architecture.
- Created README.md with detailed project overview, technology stack, directory structure, setup instructions, API endpoints, authentication flow, and external services.
This commit is contained in:
hamed
2026-06-10 11:12:15 +03:30
parent c7ae591e49
commit e9075e8c92
18 changed files with 3533 additions and 142 deletions
@@ -25,6 +25,10 @@ class ExceptionSubscriber implements EventSubscriberInterface
public function onKernelException(ExceptionEvent $event): void
{
if (str_starts_with($event->getRequest()->getPathInfo(), '/api/doc')) {
return;
}
$exception = $event->getThrowable();
if ($exception instanceof AppException) {
@@ -25,7 +25,8 @@ class SecurityHeadersSubscriber implements EventSubscriberInterface
$response->headers->set('Strict-Transport-Security', 'max-age=31536000; includeSubDomains');
}
if (str_starts_with($event->getRequest()->getPathInfo(), '/api')) {
$path = $event->getRequest()->getPathInfo();
if (str_starts_with($path, '/api') && !str_starts_with($path, '/api/doc')) {
$response->headers->set('Content-Security-Policy', "default-src 'none'");
}
}