gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin-deployment] branch master updated: util


From: gnunet
Subject: [libeufin-deployment] branch master updated: util
Date: Thu, 26 Nov 2020 14:45:46 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin-deployment.

The following commit(s) were added to refs/heads/master by this push:
     new e958a4a  util
e958a4a is described below

commit e958a4a2a149d80e1eea3fc924a563b0e79cf667
Author: MS <ms@taler.net>
AuthorDate: Thu Nov 26 14:45:41 2020 +0100

    util
---
 util/server.py | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/util/server.py b/util/server.py
new file mode 100644
index 0000000..3235a4d
--- /dev/null
+++ b/util/server.py
@@ -0,0 +1,49 @@
+##
+# This file is part of GNU TALER.
+# Copyright (C) 2014-2017 INRIA
+#
+# TALER is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free 
Software
+# Foundation; either version 2.1, or (at your option) any later version.
+#
+# TALER is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more 
details.
+#
+# You should have received a copy of the GNU Lesser General Public License 
along with
+# GNU TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
+#
+# @author Florian Dold
+# @author Marcello Stanisci
+# @brief Implementation of a Taler-compatible blog.
+
+import urllib.parse
+from urllib.parse import urljoin, quote, urlencode
+import logging
+import os
+import traceback
+import uuid
+import flask
+import json
+
+BASE_DIR = os.path.dirname(os.path.abspath(__file__))
+app = flask.Flask(__name__, template_folder=BASE_DIR)
+
+LOGGER = logging.getLogger(__name__)
+app.config.from_object(__name__)
+
+##
+# Serve the main index page.
+#
+# @return response object of the index page.
+@app.route("/", defaults={"path": ""}, methods=["GET", "POST"])
+@app.route("/<path:path>", methods=["GET", "POST"])
+def index(path):
+
+    if "POST" == flask.request.method:
+        body = flask.request.get_data().decode("utf-8")
+        print("LOGGING REQUEST BODY:")
+        # print(json.dumps(body, indent=1))
+        print(body)
+    
+    return "ebicstest1"

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]