fix(tauri): add /api/list-servers route

This commit is contained in:
Daniel Roe 2023-01-10 12:25:57 +00:00
parent 0cb974fcf7
commit d36e21c5f1

View file

@ -20,6 +20,10 @@ const handlers = [
route: '/api/:server/login', route: '/api/:server/login',
handler: defineLazyEventHandler(() => import('~/server/api/[server]/login').then(r => r.default || r)), handler: defineLazyEventHandler(() => import('~/server/api/[server]/login').then(r => r.default || r)),
}, },
{
route: '/api/list-servers',
handler: defineLazyEventHandler(() => import('~/server/api/list-servers').then(r => r.default || r)),
},
] ]
const { protocol, host } = parseURL(window.location.href) const { protocol, host } = parseURL(window.location.href)