Commit b6aa12a
committed
Allow /models and /api routes to be accessed without auth when AUTOMATIC_LOGIN is enabled
Previously, with AUTOMATIC_LOGIN=true, all routes except /login and
/healthcheck would redirect to OAuth. This prevented unauthenticated
access to the /models page and API endpoints like /api/models.
This aligns the AUTOMATIC_LOGIN behavior with the regular login flow,
which already excludes /models and /api routes from the OAuth redirect.
Also fixes the /models/ pattern to /models (without trailing slash) so
that the /models page itself is matched, not just /models/* subpages.1 parent 999f616 commit b6aa12a
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
167 | | - | |
| 169 | + | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
| |||
0 commit comments