Update code in endpoints/framework.get.py

This commit is contained in:
Backend IM Bot 2025-03-21 21:12:14 +01:00
parent db5fd36781
commit 12db753fb8

View File

@ -0,0 +1,22 @@
from fastapi import APIRouter, Depends, HTTPException
router = APIRouter()
@router.get("/framework")
async def framework_handler():
"""Get list of backend languages"""
backend_languages = [
{"name": "Python", "framework": "Django, Flask, FastAPI"},
{"name": "JavaScript", "framework": "Node.js, Express.js"},
{"name": "Java", "framework": "Spring"},
{"name": "C#", "framework": ".NET Core"},
{"name": "Ruby", "framework": "Ruby on Rails"},
{"name": "PHP", "framework": "Laravel, CodeIgniter"},
{"name": "Go", "framework": "Gin, Beego"},
{"name": "Rust", "framework": "Rocket, Actix Web"}
]
return {
"message": "Backend languages retrieved successfully",
"data": backend_languages
}