refactor: migrate legacy API routes to /legacy prefix for backward compatibility

This commit is contained in:
line-6000
2026-04-02 03:34:12 +08:00
parent 4f250098f9
commit 99c4e5e072
6 changed files with 241 additions and 18 deletions
+3 -2
View File
@@ -2,15 +2,16 @@ package middleware
import (
"bytes"
"io/ioutil"
"github.com/assimon/luuu/config"
"github.com/assimon/luuu/util/constant"
"github.com/assimon/luuu/util/json"
"github.com/assimon/luuu/util/sign"
"github.com/labstack/echo/v4"
"io/ioutil"
)
func CheckApiSign() echo.MiddlewareFunc {
func LegecyCheckApiSign() echo.MiddlewareFunc {
return func(next echo.HandlerFunc) echo.HandlerFunc {
return func(ctx echo.Context) error {
params, err := ioutil.ReadAll(ctx.Request().Body)