You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
261 B

from fastapi import FastAPI
class WebExtension:
app: FastAPI
def __init__(self, core):
self.core = core
self.app = core.app
@self.app.get(f"{self.core.context}/ping")
async def pong():
return {"pong": True}