Serve both UI assets and REST API from handler

This commit is contained in:
Ken Hibino
2021-10-10 06:33:38 -07:00
parent b20cf02f3b
commit ccdd6cea01
35 changed files with 620 additions and 234 deletions

View File

@@ -1,3 +1,7 @@
<!--
This file is used as a template for go's html/template package.
Use delimiter "/[[", "]]" to denote actions.
-->
<!DOCTYPE html>
<html lang="en">
<head>
@@ -45,6 +49,9 @@
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
<script>
window.ROOT_PATH=/[[.RootPath]];
</script>
<title>Asynq - Monitoring</title>
</head>
<body>