Skip to content

Commit

Permalink
refactor: migrated dashboard to controller, closes #3257
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Dec 29, 2024
1 parent d4cd819 commit 9340f0c
Show file tree
Hide file tree
Showing 16 changed files with 422 additions and 1,294 deletions.
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ server {
rewrite admin/api/(.*) /admin/api/index.php last;

# Administration pages
rewrite admin/(2fa|attachments|authenticate|backup|category|check|comments|configuration|elasticsearch|export|faq|faqs|forms|glossary|group|import|instance|instances|logout|login|media-browser|news|password|questions|session-keep-alive|statistics|sticky-faqs|stopwords|system|token|tags|update|user) /admin/front.php last;
rewrite admin/(.*) /admin/index.php last;

# REST API v3.0 and v3.1
rewrite ^api/v3\.[01]/(.*) /api/index.php last;
Expand Down
5 changes: 3 additions & 2 deletions phpmyfaq/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ Header set Access-Control-Allow-Headers "Content-Type, Authorization"
</IfModule>
# the path to your phpMyFAQ installation
RewriteBase /
# Exclude assets from being handled by Symfony Router
RewriteRule ^(admin/assets|admin/images)($|/) - [L]
# Error pages
ErrorDocument 404 /index.php?action=404
# General pages
Expand Down Expand Up @@ -143,8 +145,7 @@ Header set Access-Control-Allow-Headers "Content-Type, Authorization"
# Administration API
RewriteRule ^admin/api/(.*) admin/api/index.php [L,QSA]
# Administration pages
RewriteRule ^admin/(2fa|attachments|authenticate|backup|category|check|comments|configuration|elasticsearch|export|faq|faqs|forms|glossary|group|import|instance|instances|login|logout|media-browser|news|password|questions|session-keep-alive|statistics|sticky-faqs|stopwords|system|tags|token|update|user) admin/front.php [L,QSA]
#RewriteRule ^admin/(.*) admin/front.php [L,QSA]
RewriteRule ^admin/(.*) admin/index.php [L,QSA]
# Private APIs
RewriteRule ^api/(autocomplete|bookmark/delete|bookmark/create|user/data/update|user/password/update|user/request-removal|user/remove-twofactor|contact|voting|register|captcha|share|comment/create|faq/create|question/create|webauthn/prepare|webauthn/register|webauthn/prepare-login|webauthn/login) api/index.php [L,QSA]
# Setup APIs
Expand Down
122 changes: 0 additions & 122 deletions phpmyfaq/admin/dashboard.php

This file was deleted.

50 changes: 0 additions & 50 deletions phpmyfaq/admin/footer.php

This file was deleted.

43 changes: 0 additions & 43 deletions phpmyfaq/admin/front.php

This file was deleted.

Loading

0 comments on commit 9340f0c

Please sign in to comment.