File size: 382 Bytes
324bf29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from fastapi import FastAPI, HTTPException
from typing import List

from server.constants import support_languages
from server.objects import Language

app = FastAPI()


@app.get("/support-languages", response_model=List[Language])
def get_languages():
    return support_languages




if __name__ == '__main__':
    import uvicorn
    uvicorn.run(app, host="127.0.0.1", port=8000)