10 lines
170 B
Python
10 lines
170 B
Python
from fastapi import FastAPI
|
|
from base_types import Notification
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.post("/notification")
|
|
async def notification(ntfy: Notification):
|
|
print(ntfy)
|