initialize project
Docker setup for the server, postgres and redis
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
from fastapi import FastAPI
|
||||
from src.proxy.router import router as proxy_router
|
||||
|
||||
app = FastAPI(
|
||||
title="thePlugAPI",
|
||||
contact={
|
||||
"creator": "big_cock_man"
|
||||
}
|
||||
)
|
||||
|
||||
app.include_router(proxy_router)
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {"Hello": "World!"}
|
||||
@@ -0,0 +1,18 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter(
|
||||
prefix="/proxy",
|
||||
tags=["Proxy"]
|
||||
)
|
||||
|
||||
@router.get("/")
|
||||
async def list_proxies():
|
||||
return
|
||||
|
||||
@router.post("/")
|
||||
async def create_proxy():
|
||||
return
|
||||
|
||||
@router.put("/{proxy_port}/")
|
||||
async def edit_proxy():
|
||||
return
|
||||
Reference in New Issue
Block a user