mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07: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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user