mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
PublicPathにrootを返すメソッドを追加
This commit is contained in:
1 file changed
+6
@@ -65,4 +65,10 @@ public class PublicPath {
|
||||
public String getStringPath() {
|
||||
return String.join("/", path);
|
||||
}
|
||||
|
||||
public PublicPath getRoot() {
|
||||
PublicPath root = new PublicPath();
|
||||
root.add("/");
|
||||
return root;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user