Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
Removed base page
  • Loading branch information
20syldev committed Jun 15, 2024
1 parent fb70d4c commit 7c14635
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import base64, firebase_admin, io, math, qrcode, random, requests, string, uuid
import base64, firebase_admin, io, json, math, qrcode, random, requests, string, uuid
from datetime import datetime
from dotenv import load_dotenv
from firebase_admin import credentials, firestore, initialize_app
Expand All @@ -20,7 +20,8 @@
# Page d'accueil
@app.route('/')
def index():
return render_template('index.html')
data = {'en': 'English', 'fr': 'Francais'}
return app.response_class(response=json.dumps(data, indent=2), status=200, mimetype='application/json')

# Route pour les langues
@app.route('/<lang>')
Expand Down

0 comments on commit 7c14635

Please sign in to comment.