SEO: meta tags, OG, JSON-LD, robots.txt, sitemap, keywords in content
This commit is contained in:
+12
@@ -424,6 +424,18 @@ def admin_page(request: Request, admin: User = Depends(require_admin), db: Sessi
|
||||
|
||||
|
||||
|
||||
|
||||
@app.get("/robots.txt", include_in_schema=False)
|
||||
def robots_txt():
|
||||
from fastapi.responses import FileResponse
|
||||
return FileResponse("static/robots.txt", media_type="text/plain")
|
||||
|
||||
|
||||
@app.get("/sitemap.xml", include_in_schema=False)
|
||||
def sitemap_xml():
|
||||
from fastapi.responses import FileResponse
|
||||
return FileResponse("static/sitemap.xml", media_type="application/xml")
|
||||
|
||||
@app.get("/api/public/services-by-category")
|
||||
def public_services_by_category(db: Session = Depends(get_db)):
|
||||
services = db.execute(
|
||||
|
||||
Reference in New Issue
Block a user