mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
🐛 fix: add api/version and api/desktop to public routes (#12194)
* 🐛 fix: add api/version and api/desktop to public routes These API endpoints should be accessible without authentication. * 🔧 chore: move location
This commit is contained in:
parent
882de51b8a
commit
ea81cd42aa
1 changed files with 4 additions and 0 deletions
|
|
@ -165,6 +165,9 @@ export function defineConfig() {
|
|||
'/api/dev(.*)',
|
||||
'/webapi(.*)',
|
||||
'/trpc(.*)',
|
||||
// version
|
||||
'/api/version',
|
||||
'/api/desktop/(.*)',
|
||||
// better auth
|
||||
'/signin',
|
||||
'/signup',
|
||||
|
|
@ -180,6 +183,7 @@ export function defineConfig() {
|
|||
'/market-auth-callback',
|
||||
// public share pages
|
||||
'/share(.*)',
|
||||
|
||||
]);
|
||||
|
||||
const betterAuthMiddleware = async (req: NextRequest) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue