summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2023-07-31 13:34:44 -0700
committerMike Crute <mike@crute.us>2023-07-31 13:34:44 -0700
commitdb217bbb1f74b7aa955d3095fef62c71946768cf (patch)
tree80ee49b11f137412cf440262950e4a116099eb24 /main.go
parent6d867608837f879be2eb934d034f49359f973c84 (diff)
downloadwebsocket_proxy-db217bbb1f74b7aa955d3095fef62c71946768cf.tar.bz2
websocket_proxy-db217bbb1f74b7aa955d3095fef62c71946768cf.tar.xz
websocket_proxy-db217bbb1f74b7aa955d3095fef62c71946768cf.zip
Complete registration flow
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index 70d0f48..7cc3e90 100644
--- a/main.go
+++ b/main.go
@@ -23,6 +23,9 @@ import (
23//go:embed templates 23//go:embed templates
24var embeddedTemplates embed.FS 24var embeddedTemplates embed.FS
25 25
26//go:embed clients
27var embeddedClients embed.FS
28
26var appVersion string 29var appVersion string
27 30
28func main() { 31func main() {
@@ -32,7 +35,7 @@ func main() {
32 } 35 }
33 cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "") 36 cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "")
34 37
35 web.Register(rootCmd, embeddedTemplates, appVersion) 38 web.Register(rootCmd, embeddedTemplates, embeddedClients, appVersion)
36 client.Register(rootCmd) 39 client.Register(rootCmd)
37 register.Register(rootCmd) 40 register.Register(rootCmd)
38 41