aboutsummaryrefslogblamecommitdiff
path: root/http_handle_gc.go
blob: b00ef8aff2fbe64e40091bf9ff6fabf2ab3688e7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                       
                                                                                  


                                                     
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-FileContributor: Runxi Yu <https://runxiyu.org>

package main

import (
	"net/http"
	"runtime"
)

func httpHandleGC(w http.ResponseWriter, r *http.Request, params map[string]any) {
	runtime.GC()
	http.Redirect(w, r, "/", http.StatusSeeOther)
}