From 7819a23171145e8a626e8357e88446817c8785dc Mon Sep 17 00:00:00 2001 From: Melonai Date: Mon, 26 Jul 2021 14:12:26 +0200 Subject: Refactor into packages --- handlers/portgate.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 handlers/portgate.go (limited to 'handlers/portgate.go') 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.") +} -- cgit 1.4.1