Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for read_sub (0.34 seconds)

  1. docs_src/sub_applications/tutorial001_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/app")
    def read_main():
        return {"message": "Hello World from main app"}
    
    
    subapi = FastAPI()
    
    
    @subapi.get("/sub")
    def read_sub():
        return {"message": "Hello World from sub API"}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 274 bytes
    - Click Count (0)
Back to Top