From d3082fd9d9bd39181a23ae85ab4862e78fb6c9cb Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 30 Jan 2023 15:19:39 +0800 Subject: [PATCH] feat(image_hosting): remove get_image wrapper --- web/.htaccess | 14 +++++++++++ .../app/image_hosting/get_image.php | 23 ------------------- .../{app => apps}/html2markdown.php | 0 .../index.php => apps/image_hosting.php} | 6 +---- .../controllers/problem_statement_manage.php | 4 ++-- .../controllers/subdomain/blog/blog_write.php | 4 ++-- web/app/route.php | 5 ++-- web/app/views/main-nav.php | 4 ++-- web/app/views/page-header.php | 4 ++-- web/image_hosting | 1 + web/install.sh | 2 +- 11 files changed, 27 insertions(+), 40 deletions(-) delete mode 100644 web/app/controllers/app/image_hosting/get_image.php rename web/app/controllers/{app => apps}/html2markdown.php (100%) rename web/app/controllers/{app/image_hosting/index.php => apps/image_hosting.php} (98%) create mode 120000 web/image_hosting diff --git a/web/.htaccess b/web/.htaccess index dd28dbc..86946dd 100644 --- a/web/.htaccess +++ b/web/.htaccess @@ -16,6 +16,20 @@ DirectorySlash Off DirectoryIndex + + ExpiresActive On + ExpiresDefault "access plus 6 month" + Header append Cache-Control "public" + + + + ExpiresActive On + ExpiresDefault "access plus 1 week" + Header append Cache-Control "public" + + +RequestHeader append X-Author "Baoshuo ( https://baoshuo.ren )" + RewriteEngine On RewriteCond %{QUERY_STRING} ^$ diff --git a/web/app/controllers/app/image_hosting/get_image.php b/web/app/controllers/app/image_hosting/get_image.php deleted file mode 100644 index 589663c..0000000 --- a/web/app/controllers/app/image_hosting/get_image.php +++ /dev/null @@ -1,23 +0,0 @@ -get() as $idx => $row) : ?>
- +