MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / IndexHtml

Function IndexHtml

frontend/frontend.go:76–80  ·  view source on GitHub ↗
(ginCtx *gin.Context)

Source from the content-addressed store, hash-verified

74}
75
76func IndexHtml(ginCtx *gin.Context) {
77 AddExpires(ginCtx)
78 ginCtx.Header("Cache-Control", "no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate")
79 ginCtx.Data(http.StatusOK, "text/html; charset=utf-8", indexHtml)
80}
81
82func (f *Frontend) Api() []pm3.Api {
83 return []pm3.Api{

Callers

nothing calls this directly

Calls 2

AddExpiresFunction · 0.85
HeaderMethod · 0.80

Tested by

no test coverage detected