diff options
| author | Melonai <einebeere@gmail.com> | 2021-07-26 14:12:26 +0200 |
|---|---|---|
| committer | Melonai <einebeere@gmail.com> | 2021-07-26 14:12:26 +0200 |
| commit | 7819a23171145e8a626e8357e88446817c8785dc (patch) | |
| tree | f8834b1952583844f62c520ab0d8285b8ec2416f /handlers/portgate.go | |
| parent | 3fe27839f0418d13a42524fd10102d0ef62c05f5 (diff) | |
| download | portgate-7819a23171145e8a626e8357e88446817c8785dc.tar.zst portgate-7819a23171145e8a626e8357e88446817c8785dc.zip | |
Refactor into packages
Diffstat (limited to 'handlers/portgate.go')
| -rw-r--r-- | handlers/portgate.go | 10 |
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.") +} |
