From b4b0d966340ad9c892f8b8912eebc6118eed7482 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 20:52:04 +0800 Subject: Use cmd/forge for the entry point --- http_handle_index.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http_handle_index.go') diff --git a/http_handle_index.go b/http_handle_index.go index 755e7c4..a519a5a 100644 --- a/http_handle_index.go +++ b/http_handle_index.go @@ -1,7 +1,7 @@ // SPDX-License-Identifier: AGPL-3.0-only // SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu -package main +package forge import ( "net/http" @@ -12,7 +12,7 @@ import ( // httpHandleIndex provides the main index page which includes a list of groups // and some global information such as SSH keys. -func (s *server) httpHandleIndex(writer http.ResponseWriter, request *http.Request, params map[string]any) { +func (s *Server) httpHandleIndex(writer http.ResponseWriter, request *http.Request, params map[string]any) { var err error var groups []nameDesc -- cgit v1.2.3