- Created Document entity with properties for file management, including filename, originalFilename, mimeType, size, uploadedAt, uploadedBy, relatedEntity, relatedEntityId, and description. - Implemented DocumentRepository for querying documents by related entity and user. - Added GitRepository entity with properties for managing Git repositories, including URL, localPath, branch, provider, accessToken, project, lastSync, name, description, createdAt, and updatedAt. - Implemented GitRepositoryRepository for querying repositories by project. - Developed GitHubService for interacting with GitHub API, including methods for fetching commits, contributions, branches, and repository info. - Developed GitService for local Git repository interactions, including methods for fetching commits, contributions, branches, and repository info. - Developed GiteaService for interacting with Gitea API, including methods for fetching commits, contributions, branches, repository info, and testing connection.
19 lines
564 B
ApacheConf
19 lines
564 B
ApacheConf
# public/.htaccess
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
|
|
# Redirect to HTTPS if not already (optional, if you want HTTPS only)
|
|
# RewriteCond %{HTTPS} !=on
|
|
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
|
|
# If the requested filename exists, serve it directly
|
|
RewriteCond %{REQUEST_FILENAME} -f
|
|
RewriteRule ^ - [L]
|
|
|
|
# If the requested directory exists, serve it directly
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
RewriteRule ^ - [L]
|
|
|
|
# Otherwise, forward to index.php
|
|
RewriteRule ^ index.php [L]
|
|
</IfModule> |