From bffcc9af53ad35d6b71335555b55fd29cf2b15f8 Mon Sep 17 00:00:00 2001 From: heliosran Date: Fri, 13 Mar 2026 15:41:37 +0000 Subject: [PATCH] Protect Ollama /tags route with auth middleware --- src/routes/ollama.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/ollama.ts b/src/routes/ollama.ts index e920ba0..6148b58 100644 --- a/src/routes/ollama.ts +++ b/src/routes/ollama.ts @@ -149,7 +149,7 @@ ollama.post("/show", openaiAuthMiddleware(), async (c) => { }); }); -ollama.get("/tags", async (c) => { +ollama.get("/tags", openaiAuthMiddleware(), async (c) => { // For /api/tags, we directly proxy the request to the upstream Ollama server const { response: upstream, error: errorResp } = await startUpstreamRequest( c.env,