Subversion Repositories SmartDukaan

Rev

Rev 27014 | Rev 27119 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27014 Rev 27113
Line 68... Line 68...
68
	    registry.addResourceHandler(RESOURCES_PATTERN).addResourceLocations(RESOURCES_LOCATION);
68
	    registry.addResourceHandler(RESOURCES_PATTERN).addResourceLocations(RESOURCES_LOCATION);
69
	}
69
	}
70
	
70
	
71
	@Override
71
	@Override
72
	public void addInterceptors(InterceptorRegistry registry) {
72
	public void addInterceptors(InterceptorRegistry registry) {
73
		registry.addInterceptor(simpleCORSInterceptor)
73
		registry.addInterceptor(simpleCORSInterceptor).addPathPatterns("/**").excludePathPatterns("/swagger-ui.html",
74
			.addPathPatterns("/**")
-
 
75
			.excludePathPatterns("/swagger-ui.html", 
-
 
76
					ProfitMandiConstants.URL_PAYU_PAY_RESPONSE, 
-
 
77
					ProfitMandiConstants.URL_PAYU_PAY_CANCELLED, 
74
				ProfitMandiConstants.URL_PAYU_PAY_RESPONSE, ProfitMandiConstants.URL_PAYU_PAY_CANCELLED,
78
					ProfitMandiConstants.URL_CCAVENUE_PAY_RESPONSE,
75
				ProfitMandiConstants.URL_CCAVENUE_PAY_RESPONSE, ProfitMandiConstants.URL_CCAVENUE_PAY_CANCELLED,
79
					ProfitMandiConstants.URL_CCAVENUE_PAY_CANCELLED);
76
				ProfitMandiConstants.URL_POST_OFFICE);
80
		
77
 
81
		registry.addInterceptor(authenticationInterceptor).addPathPatterns("/**")
78
		registry.addInterceptor(authenticationInterceptor).addPathPatterns("/**")
82
		.excludePathPatterns(ProfitMandiConstants.URL_ADMIN_TOKEN)
79
		.excludePathPatterns(ProfitMandiConstants.URL_ADMIN_TOKEN)
83
		.excludePathPatterns("/**/swagger*/**").excludePathPatterns("/v2/**").excludePathPatterns("/document")
80
		.excludePathPatterns("/**/swagger*/**").excludePathPatterns("/v2/**").excludePathPatterns("/document")
84
		.excludePathPatterns(ProfitMandiConstants.URL_USER_GOOGLE_LOGIN, ProfitMandiConstants.URL_USER_GOOGLE_LOGIN + "/", ProfitMandiConstants.URL_VERIFY_OTP)
81
		.excludePathPatterns(ProfitMandiConstants.URL_USER_GOOGLE_LOGIN, ProfitMandiConstants.URL_USER_GOOGLE_LOGIN + "/", ProfitMandiConstants.URL_VERIFY_OTP)
85
		.excludePathPatterns("/store/token")
82
		.excludePathPatterns("/store/token")