From 2c0173463e43aea4bb4ae3ee0152eaf155dfb73f Mon Sep 17 00:00:00 2001 From: Bedram Tamang Date: Thu, 28 May 2026 15:34:50 -0700 Subject: [PATCH] feat: update onefile-app and singleline-app examples Co-Authored-By: Claude Sonnet 4.6 --- example/onefile-app/main.py | 12 ++++-------- example/singleline-app/app.py | 1 + 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/example/onefile-app/main.py b/example/onefile-app/main.py index 4a029ddb..7e83121c 100644 --- a/example/onefile-app/main.py +++ b/example/onefile-app/main.py @@ -3,20 +3,16 @@ from fastapi_startkit.fastapi import FastAPIProvider # Define providers -providers = [ - FastAPIProvider -] +providers = [FastAPIProvider] # Initialize Application -app: Application = Application( - base_path=str(Path().cwd()), - providers=providers -) +app: Application = Application(base_path=str(Path().cwd()), providers=providers) -@app.get('/hello') +@app.get("/hello") async def hello(): return {"message": "Hello from the Fastapi Starkit!"} + if __name__ == "__main__": app.handle_command() diff --git a/example/singleline-app/app.py b/example/singleline-app/app.py index a412bfd2..694884b9 100644 --- a/example/singleline-app/app.py +++ b/example/singleline-app/app.py @@ -3,6 +3,7 @@ app: Application = Application(providers=[FastAPIProvider]) + @app.get("/") async def index(): return {"message": "Hello, World!"}