//
//  Copyright 2026 The InfiniFlow Authors. All Rights Reserved.
//
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.
//  You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS,
//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//  See the License for the specific language governing permissions and
//  limitations under the License.
//

package router

import (
	"github.com/gin-gonic/gin"
)

func SetupEERouter(engine *gin.Engine) {
}

func RegisterEENoAuthRouter(apiNoAuth *gin.RouterGroup, r *Router) {
	// For EE
	apiNoAuth.GET("/auth/login/channels", r.userHandler.GetLoginChannels)
	apiNoAuth.GET("/auth/login/:channel", r.userHandler.OAuthLogin)
	apiNoAuth.GET("/auth/oauth/:channel/callback", r.userHandler.OAuthChannelCallback)
	apiNoAuth.GET("/auth/oauth/callback", r.userHandler.OAuthCallback)
	apiNoAuth.GET("/auth/oauth/github/callback", r.userHandler.GitHubAuthCallback)
	apiNoAuth.GET("/auth/oauth/lark/callback", r.userHandler.LarkAuthCallback)
	apiNoAuth.GET("/auth/icbc/callback", r.userHandler.ICBCAuthCallback)
	apiNoAuth.GET("/auth/azure/callback", r.userHandler.AzureAuthCallback)
	apiNoAuth.GET("/auth/azure/login", r.userHandler.AzureAuthLogin)
	apiNoAuth.POST("/auth/register/captcha", r.userHandler.Captcha)
	apiNoAuth.POST("/auth/register/otp", r.userHandler.SendOTP)
	apiNoAuth.POST("/auth/register/otp/verify", r.userHandler.VerifyOTP)
}
