Skip to content

Commit

Permalink
name error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jairo Matos Da Rocha committed Sep 30, 2024
1 parent 7b43d6b commit 5c0fc53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/api/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from app.oauth2 import CLIENT_ID, CLIENT_SECRET, TOKEN_URL


routes = APIRouter()
router = APIRouter()


# Modelo de resposta para o token
Expand All @@ -18,7 +18,7 @@ class Token(BaseModel):
token_type: str

# Rota de login para obter o token de acesso
@routes.post("/login", response_model=Token)
@router.post("/login", response_model=Token)
async def login(form_data: OAuth2PasswordRequestForm = Depends()):
# Dados para a requisição ao Keycloak
payload = {
Expand Down
4 changes: 2 additions & 2 deletions app/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def created_routes(app):

app.include_router(task.router, prefix="/api/task", tags=["Task Google Earth Engine"])
app.include_router(result.router, prefix="/api/result", tags=["Result Google Earth Engine"])
app.include_router(tvi.routes, prefix="/api/tvi", tags=["TVI - Temporal Visual Inspection"])
app.include_router(oauth2.routes, prefix="/api/auth", tags=["Authentication"])
app.include_router(tvi.router, prefix="/api/tvi", tags=["TVI - Temporal Visual Inspection"])
app.include_router(oauth2.router, prefix="/api/auth", tags=["Authentication"])

return app
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ services:
- "8086:8080"
volumes:
- .:/home/suporte
- ./volumes/gee.json:/var/sec/gee.json
- ./volumes/logs:/logs

networks:
- web_lapig
Expand Down

0 comments on commit 5c0fc53

Please sign in to comment.