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

zio/stable
Daniel Roe 2023-01-10 12:25:57 +00:00
parent 0cb974fcf7
commit d36e21c5f1
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ const handlers = [
route: '/api/:server/login',
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)