mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 22:06:38 +08:00
63cd906cfc
- Merge all files inside openflare-server to the repository root directory. - Relocate agent, relay, and flared subprojects from internal/ to internal/apps/. - Combine docker-compose files and update build context paths to root. - Update GitHub workflows and Dockerfiles to refer to new directories and package names. - Rewrite Go package imports across all files. - Resolve database renew test race condition and clean up docs.
25 lines
622 B
Go
25 lines
622 B
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Package custom provides custom business handlers
|
|
package custom
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"github.com/Rain-kl/Wavelet/internal/common/response"
|
|
)
|
|
|
|
// Hello is a sample handler for custom business logic
|
|
// @Summary Sample Hello API
|
|
// @Description A sample business API for customization
|
|
// @Tags custom
|
|
// @Produce json
|
|
// @Success 200 {object} response.Any{data=string} "成功"
|
|
// @Router /api/v1/custom/hello [get]
|
|
func Hello(c *gin.Context) {
|
|
c.JSON(http.StatusOK, response.OK("Hello from custom business module!"))
|
|
}
|