path_components

This commit is contained in:
masnn committed 2020-06-13 12:24:54 +08:00
1 parent 5ca424da0b
commit c93597703e
15 files changed
+134 -130

No files matched your search

+2 -2
View File
@@ -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 };