jameshns commited on
Commit
967d520
·
verified ·
1 Parent(s): 003c6a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -76,7 +76,7 @@ token=os.getenv('BOT_TOKEN')
76
  # await bot.delete_webhook()
77
 
78
 
79
- # app = FastAPI()
80
  # # app.mount("/static", StaticFiles(directory="static"), name="static")
81
  # # templates = Jinja2Templates(directory="templates")
82
 
@@ -167,5 +167,9 @@ async def ask(message: Message, state: FSMContext):
167
  async def main():
168
  await dp.start_polling(bot)
169
 
 
 
 
 
170
  if __name__ == "__main__":
171
  asyncio.run(main())
 
76
  # await bot.delete_webhook()
77
 
78
 
79
+ app = FastAPI()
80
  # # app.mount("/static", StaticFiles(directory="static"), name="static")
81
  # # templates = Jinja2Templates(directory="templates")
82
 
 
167
  async def main():
168
  await dp.start_polling(bot)
169
 
170
+ @app.get("/")
171
+ def greet_json():
172
+ return {"Hello2": "World!2"}
173
+
174
  if __name__ == "__main__":
175
  asyncio.run(main())