-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
41 lines (26 loc) · 747 Bytes
/
main.py
File metadata and controls
41 lines (26 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from fastapi import FastAPI
from app.api.api_v1.api import router as api_router
description = """
Ricksixty helps you access twitter api for your analytical project. 🚀
Please note that this is a work in progress.
## Users
You will be able to:
* **Get user** (you will be able to get twitter user).
* **Get followers** .
* **Get following** .
* **Get tweets** .
"""
app = FastAPI(
title="Ricksixty",
description=description,
version="0.0.1",
contact={
"name": "bandersnatchx64",
"url": "https://twitter.com/bandersnatchx64",
"email": "lordareello@gmail.com",
},
)
@app.get('/')
async def root():
return {'message':'hello world'}
app.include_router(api_router, prefix='/api/v1')