package cn.meowrain.aioj.backend.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@ConfigurationProperties(prefix = GatewayPropertiesConfiguration.PREFIX)
@Data
public class GatewayPropertiesConfiguration {

	public static final String PREFIX = "aioj-backend-gateway";

	/*
	 * 白名单放行路径
	 * 支持Ant风格路径匹配，如 /api/v1/question/**
	 */
	private List<String> whiteList = new ArrayList<>();

}
