File size: 479 Bytes
5a79e57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
import re


app = FastAPI()


from fastapi import FastAPI
from endpoints import groundedness ,gaurdrails

app = FastAPI(title="My Multi-Endpoint App")

app.include_router(groundedness.router)
app.include_router(gaurdrails.router)
# app.include_router(another_endpoint.router)

@app.get("/")
def read_root():
    return {"message": "Welcome to my API with multiple endpoints!"}