package com.platform.config;

import com.platform.filter.LiveNotifyInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;


/**
 * @Author TONG
 * @Date 2019/4/8 15:21
 **/
@Configuration
public class LiveNotifyConfig extends WebMvcConfigurerAdapter  {

    @Autowired
    private LiveNotifyInterceptor liveNotifyInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(liveNotifyInterceptor).addPathPatterns("/live/notify/**");
    }
}
