weather/web/app/localtion/localtion.go

20 lines
400 B
Go
Raw Normal View History

2025-01-02 22:57:51 +08:00
package localtion
import (
"cc/web/app/localtion/api"
"github.com/gofiber/fiber/v2"
)
// AddRouter 添加路由
func AddRouter(r fiber.Router) {
// 获取所有地点
r.Get("localtion", api.GetLocaltions)
// 创建地点
r.Post("localtion", api.CreateLocaltion)
// 更新地点
r.Put("localtion/:id", api.UpdateLocaltion)
// 删除地点
r.Delete("localtion/:id", api.DeleteLocaltion)
}