Added html support

This commit is contained in:
Vyacheslav K
2025-02-04 18:36:55 +03:00
parent d490f2c8ac
commit 87141001cb
3 changed files with 59 additions and 0 deletions

View File

@@ -21,6 +21,11 @@ async def init_db(): # Инициализация БД
""")
await db.commit()
@app.route('/')
def serve_index():
return send_from_directory('./static', 'index.html')
@app.route('/api/store', methods=['POST']) # Транслитерация и сохранение в БД
async def history_store():
try: