package com.jambotronGroup.jambotron.configuretions;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/*
@Configuration

@EnableWebMvc
public class MvcConfig implements WebMvcConfigurer {
    @Value("${spring.resources.static-locations}")
    String resourceLocations;

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        //registry.addResourceHandler("/public/**").addResourceLocations(resourceLocations);
        registry.addResourceHandler("/**").addResourceLocations("classpath:/resources/");

        //registry.
        registry.addResourceHandler("/media/**").addResourceLocations("resources/main/public/media/");

    }
}*/
