mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
PublicPathにrootを返すメソッドを追加
This commit is contained in:
parent
9db85bb9b3
commit
0cab05c581
|
@ -65,4 +65,10 @@ public class PublicPath {
|
||||||
public String getStringPath() {
|
public String getStringPath() {
|
||||||
return String.join("/", path);
|
return String.join("/", path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PublicPath getRoot() {
|
||||||
|
PublicPath root = new PublicPath();
|
||||||
|
root.add("/");
|
||||||
|
return root;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user