fix(rtasks): exempt rtasks API from space auth middleware
The clf space is private, so all API calls were getting 401'd by the space access middleware before reaching the rtasks routes. Add /rtasks/api/ to the public endpoint exemption list (like rwallet, rdesign, rvote already are). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ac332468ba
commit
ccaef33a20
|
|
@ -2812,8 +2812,8 @@ for (const mod of getAllModules()) {
|
|||
|| pathname.includes("/rcart/pay/")
|
||||
|| pathname.includes("/rwallet/api/")
|
||||
|| pathname.includes("/rdesign/api/")
|
||||
|| (c.req.method === "GET" && pathname.includes("/rvote/api/"))
|
||||
|| (c.req.method === "POST" && pathname.endsWith("/rtasks/api/clickup/webhook"));
|
||||
|| pathname.includes("/rtasks/api/")
|
||||
|| (c.req.method === "GET" && pathname.includes("/rvote/api/"));
|
||||
|
||||
if (!isHtmlRequest && !isPublicEndpoint && (vis === "private" || vis === "permissioned")) {
|
||||
const token = extractToken(c.req.raw.headers);
|
||||
|
|
|
|||
Loading…
Reference in New Issue