Small fix

This commit is contained in:
brian 2023-11-19 18:39:28 -05:00
parent 3b579f1f97
commit 84d66c598f
2 changed files with 2 additions and 34 deletions

View file

@ -20,41 +20,9 @@ export default function Home() {
if (error) return <Error />
if (isLoading) return <Loading />
let route = {
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "1.1.1.1"
}
]
}
]
}
]
}
],
"match": [
{
"host": [
"containers.grug.dev",
"containers.daddyimpregnant.com",
"containers.mizuledevelopment.com"
]
}
],
"terminal": true
}
return (
<main>
{routeDialog && <RouteDialog route={route as Route} />}
{routeDialog && <RouteDialog route={routes as Route} />}
<div className='flex items-center justify-center p-6'>
<Card className='flex'>
<CardHeader>

View file

@ -16,7 +16,7 @@ interface Match {
interface Handle {
handler: string;
upstreams: Upstream[];
routes: Route[];
routes?: Route[];
}
interface Upstream {