summary refs log tree commit diff
path: root/handlers/portgate.go
diff options
context:
space:
mode:
authorMelonai <einebeere@gmail.com>2021-07-26 14:12:26 +0200
committerMelonai <einebeere@gmail.com>2021-07-26 14:12:26 +0200
commit7819a23171145e8a626e8357e88446817c8785dc (patch)
treef8834b1952583844f62c520ab0d8285b8ec2416f /handlers/portgate.go
parent3fe27839f0418d13a42524fd10102d0ef62c05f5 (diff)
downloadportgate-7819a23171145e8a626e8357e88446817c8785dc.tar.zst
portgate-7819a23171145e8a626e8357e88446817c8785dc.zip
Refactor into packages
Diffstat (limited to 'handlers/portgate.go')
-rw-r--r--handlers/portgate.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/handlers/portgate.go b/handlers/portgate.go
new file mode 100644
index 0000000..9d4f3ef
--- /dev/null
+++ b/handlers/portgate.go
@@ -0,0 +1,10 @@
+package handlers
+
+import "github.com/valyala/fasthttp"
+
+// handlePortgateRequest handles all Portgate specific request for either showing Portgate
+// specific pages or handling creation of authorization tokens.
+func (h *RequestHandler) handlePortgateRequest(ctx *fasthttp.RequestCtx) {
+	// TODO: Implement authentication, authorization
+	_, _ = ctx.WriteString("Portgate request.")
+}