Commit 698472bd authored by Saliou's avatar Saliou

test ci-cd

parent 4fd0361e
Pipeline #29 passed with stage
in 31 seconds
...@@ -17,7 +17,6 @@ from dotenv import load_dotenv ...@@ -17,7 +17,6 @@ from dotenv import load_dotenv
project_folder = os.getcwd() project_folder = os.getcwd()
load_dotenv(os.path.join(project_folder, '.env')) load_dotenv(os.path.join(project_folder, '.env'))
class DecimalEncoder(json.JSONEncoder): class DecimalEncoder(json.JSONEncoder):
def default(self, o): def default(self, o):
if isinstance(o, decimal.Decimal): if isinstance(o, decimal.Decimal):
...@@ -47,9 +46,8 @@ def verify_token(token): ...@@ -47,9 +46,8 @@ def verify_token(token):
return tokens[token] return tokens[token]
@app.route('/') @app.route('/')
@auth.login_required
def index(): def index():
return "Hello, {}!".format(auth.current_user()) return "Hello from baamtu, {}!".format(auth.current_user())
@app.route('/articles') @app.route('/articles')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment