refactor: stop supporting admin folder mapping in workspace. (#593)

pull/595/head
Ryan Wang 2020-02-25 12:52:17 +08:00 committed by GitHub
parent e8db12a93d
commit 72d59a5617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -42,7 +42,6 @@ import java.io.IOException;
import java.util.*; import java.util.*;
import static run.halo.app.model.support.HaloConst.FILE_SEPARATOR; import static run.halo.app.model.support.HaloConst.FILE_SEPARATOR;
import static run.halo.app.model.support.HaloConst.HALO_ADMIN_RELATIVE_PATH;
import static run.halo.app.utils.HaloUtils.*; import static run.halo.app.utils.HaloUtils.*;
/** /**
@ -106,7 +105,6 @@ public class WebMvcAutoConfiguration extends WebMvcConfigurationSupport {
// register /** resource handler. // register /** resource handler.
registry.addResourceHandler("/**") registry.addResourceHandler("/**")
.addResourceLocations(workDir + "templates/admin/")
.addResourceLocations("classpath:/admin/") .addResourceLocations("classpath:/admin/")
.addResourceLocations(workDir + "static/"); .addResourceLocations(workDir + "static/");
@ -120,7 +118,6 @@ public class WebMvcAutoConfiguration extends WebMvcConfigurationSupport {
registry.addResourceHandler(uploadUrlPattern) registry.addResourceHandler(uploadUrlPattern)
.addResourceLocations(workDir + "upload/"); .addResourceLocations(workDir + "upload/");
registry.addResourceHandler(adminPathPattern) registry.addResourceHandler(adminPathPattern)
.addResourceLocations(workDir + HALO_ADMIN_RELATIVE_PATH)
.addResourceLocations("classpath:/admin/"); .addResourceLocations("classpath:/admin/");
if (!haloProperties.isDocDisabled()) { if (!haloProperties.isDocDisabled()) {