Ignore:
Timestamp:
03/13/23 00:58:07 (20 months ago)
Author:
Gjoko Kostadinov <gjoko.kostadinov@…>
Branches:
master
Children:
9050790
Parents:
2b0a4db
Message:

Add admin page initial work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/edu/gjoko/schedlr/config/MvcConfig.java

    r2b0a4db r46fd0c7  
    22
    33import org.springframework.context.annotation.Configuration;
     4import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
    45import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
    56import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
     
    1415        registry.addViewController("/register_business").setViewName("register_business");
    1516        registry.addViewController("/homepage").setViewName("homepage");
     17        registry.addViewController("/admin").setViewName("admin");
    1618    }
    1719
    18 
     20    @Override
     21    public void addResourceHandlers(ResourceHandlerRegistry registry) {
     22        registry.addResourceHandler("/resources/**")
     23                .addResourceLocations("/resources/");
     24    }
    1925}
Note: See TracChangeset for help on using the changeset viewer.