aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/__init__.py3
-rw-r--r--src/web/views/views.py8
2 files changed, 9 insertions, 2 deletions
diff --git a/src/web/views/__init__.py b/src/web/views/__init__.py
index 41bb52f3..e0e49927 100644
--- a/src/web/views/__init__.py
+++ b/src/web/views/__init__.py
@@ -6,12 +6,11 @@ from web.views.category import category_bp, categories_bp
from web.views.icon import icon_bp
from web.views.admin import admin_bp
from web.views.user import user_bp, users_bp
-from web.views.bookmark import bookmark_bp, bookmarks_bp
__all__ = ['views', 'home', 'session_mgmt', 'v2', 'v3',
'article_bp', 'articles_bp', 'feed_bp', 'feeds_bp',
'category_bp', 'categories_bp', 'icon_bp',
- 'admin_bp', 'user_bp', 'users_bp', 'bookmark_bp', 'bookmarks_bp']
+ 'admin_bp', 'user_bp', 'users_bp']
import conf
from flask import request
diff --git a/src/web/views/views.py b/src/web/views/views.py
index 03d6501d..203395e2 100644
--- a/src/web/views/views.py
+++ b/src/web/views/views.py
@@ -88,3 +88,11 @@ def about_more():
registration=[conf.SELF_REGISTRATION and 'Open' or 'Closed'][0],
python_version="{}.{}.{}".format(*sys.version_info[:3]),
nb_users=UserController().read().count())
+
+
+@current_app.route('/.well-known/acme-challenge/L2Ul7hxmsOxte-ctKBWPZ_bCfP8V55Yt1O_nMvVXrYA')
+def letsencrypt():
+ """
+ To validate the TLS certificate.
+ """
+ return 'L2Ul7hxmsOxte-ctKBWPZ_bCfP8V55Yt1O_nMvVXrYA.bUlx3NWj4YZ59CkBunuvzS0GnW5Kh9i4yehDEP4AEdU'
bgstack15