First version of switchyard that kind of works
This commit is contained in:
commit
4f623d4897
4 changed files with 293 additions and 0 deletions
22
templates/index.html
Normal file
22
templates/index.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Switchyard Server</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Switchyard</h1>
|
||||
<h2>Current Routes:</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<td>Hostname</td>
|
||||
<td>Target</td>
|
||||
</thead>
|
||||
{{ range .Forwards }}
|
||||
<tr>
|
||||
<td> {{ .Hostname }} </td>
|
||||
<td> {{ .Target }} </td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue