1
0
mirror of https://gitlab.com/2-chainz/2chainz.git synced 2025-06-15 17:36:39 +00:00
2chainz/rest/main.py
2025-05-22 23:56:24 -06:00

11 lines
328 B
Python

from fastapi import FastAPI
app = FastAPI() # Creating an instance of the FastAPI class
@app.get("/") # Decorator to define a GET endpoint at the root path "/"
def index():
return {"Hello": "World"}
@app.get("/piaic/") # Decorator to define a GET endpoint at "/piaic/"
def piaic():
return {"organization": "piaic"}