From 72d59a561737d711b12f37486fd0f19e1f13c897 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 25 Feb 2020 12:52:17 +0800 Subject: [PATCH] refactor: stop supporting admin folder mapping in workspace. (#593) --- src/main/java/run/halo/app/config/WebMvcAutoConfiguration.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/run/halo/app/config/WebMvcAutoConfiguration.java b/src/main/java/run/halo/app/config/WebMvcAutoConfiguration.java index de99fbb9fe..3d209392c2 100644 --- a/src/main/java/run/halo/app/config/WebMvcAutoConfiguration.java +++ b/src/main/java/run/halo/app/config/WebMvcAutoConfiguration.java @@ -42,7 +42,6 @@ import java.util.*; 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.*; /** @@ -106,7 +105,6 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) { // register /** resource handler. registry.addResourceHandler("/**") - .addResourceLocations(workDir + "templates/admin/") .addResourceLocations("classpath:/admin/") .addResourceLocations(workDir + "static/"); @@ -120,7 +118,6 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler(uploadUrlPattern) .addResourceLocations(workDir + "upload/"); registry.addResourceHandler(adminPathPattern) - .addResourceLocations(workDir + HALO_ADMIN_RELATIVE_PATH) .addResourceLocations("classpath:/admin/"); if (!haloProperties.isDocDisabled()) {