Initial version of app
Some checks failed
Build & Release / build-docker-image (push) Failing after 4m15s
Build & Release / deploy-to-production (push) Has been skipped

This commit is contained in:
2026-02-13 18:18:14 +01:00
commit ba97013c27
22 changed files with 1356 additions and 0 deletions

24
app/main.py Normal file
View File

@@ -0,0 +1,24 @@
from fastapi import Depends, FastAPI
from routers import embed, yle_rss_fi, yle_rss_en, the_local, taloustaito,sur,hackernews,fuengirola
from settings.defaults import get_settings
app = FastAPI(title='Mastobot', description='Mastodon Feed Automation Service', version=get_settings().version)
app.include_router(embed.router, prefix="/embed", tags=["embed"])
app.include_router(yle_rss_fi.router, prefix="/rss", tags=["rss"])
app.include_router(yle_rss_en.router, prefix="/rss", tags=["rss"])
app.include_router(the_local.router, prefix="/rss", tags=["rss"])
app.include_router(taloustaito.router, prefix="/rss", tags=["rss"])
app.include_router(sur.router, prefix="/rss", tags=["rss"])
app.include_router(hackernews.router, prefix="/rss", tags=["rss"])
app.include_router(fuengirola.router, prefix="/rss", tags=["rss"])
@app.get("/")
def read_root():
return {"message": "Welcome to Mastobot!"}
@app.get("/health")
def health_check():
return {"status": "healthy"}