Files
OpenFlare/internal/apps/custom/routers.go
T
ryan fbbb75095f refactor(structure): group platform, infra, and shared packages
Move process wiring, technical adapters, and cross-cutting contracts out of flat internal/ packages so new code has a clear home without changing business layout.
2026-07-24 15:28:39 +08:00

26 lines
783 B
Go

// Copyright 2026 Arctel.net
// SPDX-License-Identifier: Apache-2.0
// Package custom is a scaffold SAMPLE, not a product business home.
// Real domains live in internal/apps/<domain>/ (sibling of oauth, user, upload).
package custom
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/Rain-kl/Wavelet/internal/shared/response"
)
// Hello is a sample handler only — do not grow real product logic in this package.
// @Summary Sample Hello API
// @Description Scaffold demo API; product APIs use semantic paths under apps/<domain>
// @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!"))
}