mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
path_components
This commit is contained in:
1 parent
5ca424da0b
commit
c93597703e
15 files changed
+134
-130
No files matched your search
@@ -13,7 +13,7 @@ class PasteShowHandler extends Handler {
|
||||
async get({ docId }) {
|
||||
const doc = await pastebin.get(docId);
|
||||
const path = [
|
||||
['Hydro', '/'],
|
||||
['Hydro', 'homepage'],
|
||||
['paste_show', null],
|
||||
[doc.title, null, true],
|
||||
];
|
||||
@@ -29,7 +29,7 @@ class PasteCreateHandler extends Handler {
|
||||
|
||||
async get() {
|
||||
const path = [
|
||||
['Hydro', '/'],
|
||||
['Hydro', 'homepage'],
|
||||
['paste_create', null],
|
||||
];
|
||||
this.response.body = { path };
|
||||
|
||||
Reference in new issue
Block a user