Showing
1 changed file
with
11 additions
and
11 deletions
| ... | @@ -36,16 +36,16 @@ app = FastAPI( | ... | @@ -36,16 +36,16 @@ app = FastAPI( |
| 36 | plugins.RequestIdPlugin(), | 36 | plugins.RequestIdPlugin(), |
| 37 | ) | 37 | ) |
| 38 | ), | 38 | ), |
| 39 | - Middleware( | 39 | + # Middleware( |
| 40 | - CacheMiddleware, | 40 | + # CacheMiddleware, |
| 41 | - cache=cache.cache, | 41 | + # cache=cache.cache, |
| 42 | - rules=[ | 42 | + # rules=[ |
| 43 | - Rule(match=re.compile(r"^/presupuesto/api/_metrics/.*"), ttl=0), | 43 | + # Rule(match=re.compile(r"^/presupuesto/api/_metrics/.*"), ttl=0), |
| 44 | - Rule(match=re.compile(r"^/presupuesto/api/search/.*"), ttl=0), | 44 | + # Rule(match=re.compile(r"^/presupuesto/api/search/.*"), ttl=0), |
| 45 | - Rule(match=re.compile(r"^/presupuesto/api/programa_proyecto/.*"), ttl=0), | 45 | + # Rule(match=re.compile(r"^/presupuesto/api/programa_proyecto/.*"), ttl=0), |
| 46 | - Rule(match=re.compile(r'^/presupuesto/api/.+'), ttl=86400, status=200), | 46 | + # Rule(match=re.compile(r'^/presupuesto/api/.+'), ttl=86400, status=200), |
| 47 | - ], | 47 | + # ], |
| 48 | - ), | 48 | + # ), |
| 49 | ], | 49 | ], |
| 50 | root_path='/presupuesto/api' | 50 | root_path='/presupuesto/api' |
| 51 | ) | 51 | ) |
| ... | @@ -63,7 +63,7 @@ app.include_router(daily.router) | ... | @@ -63,7 +63,7 @@ app.include_router(daily.router) |
| 63 | app.include_router(search.router) | 63 | app.include_router(search.router) |
| 64 | app.include_router(private_metrics.router) | 64 | app.include_router(private_metrics.router) |
| 65 | 65 | ||
| 66 | -metrics.install(app) | 66 | +# metrics.install(app) |
| 67 | 67 | ||
| 68 | 68 | ||
| 69 | # @app.on_event('startup') | 69 | # @app.on_event('startup') | ... | ... |
-
Please register or login to post a comment