Add static serving

This commit is contained in:
Fred Boniface
2023-09-04 11:08:56 +01:00
parent bfc14ce717
commit 073737d0e7
7 changed files with 53 additions and 17 deletions

View File

@@ -4,7 +4,8 @@
<meta name="charset" content="utf-8" />
<title>barcodes</title>
<link rel="icon" type="image/png" href="/favicon.png" />
<!-- CSS and JS Inclusions -->
<link rel="stylesheet" type="text/css" href="/style.css">
{{ template "head" . }}
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="author" content="Frederick Boniface" />

View File

@@ -1,4 +1,8 @@
{{ define "title" }}API Documentation{{ end }}
{{ define "head" }}
{{ end }}
{{ define "body" }}
<p>API Requests can be made by making a POST request to /generate</p>

7
templates/index.html Normal file
View File

@@ -0,0 +1,7 @@
{{ define "title" }}barcodes{{ end }}
{{ define "head" }}
{{ end }}
{{ define "body" }}
{{ end }}