static

package
v4.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Static

func Static(r *gin.RouterGroup, noRoute func(handlers ...gin.HandlerFunc))

Static 配置静态资源路由和处理无路由请求 设置静态文件服务并配置前端路由

参数:

  • r: Gin路由组
  • noRoute: 无路由处理函数

func UpdateIndexHTML

func UpdateIndexHTML()

UpdateIndexHTML 根据最新设置更新索引HTML 将设置中的配置项应用到HTML模板中

Types

type SiteConfig

type SiteConfig struct {
	BasePath string
	Cdn      string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL