Skip to content

Commit

Permalink
refactor: stop supporting admin folder mapping in workspace. (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Feb 25, 2020
1 parent e8db12a commit 72d59a5
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;

/**
Expand Down Expand Up @@ -106,7 +105,6 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {

// register /** resource handler.
registry.addResourceHandler("/**")
.addResourceLocations(workDir + "templates/admin/")
.addResourceLocations("classpath:/admin/")
.addResourceLocations(workDir + "static/");

Expand All @@ -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()) {
Expand Down

0 comments on commit 72d59a5

Please sign in to comment.