Delete h.ts
This commit is contained in:
parent
07a202da8f
commit
cf5a1ac18b
14
pages/h.ts
14
pages/h.ts
|
@ -1,14 +0,0 @@
|
||||||
export const handleTag = async (request: Hapi.Request, h: Hapi.ResponseToolkit) => {
|
|
||||||
// https://imgur.com/t/funny
|
|
||||||
if (!CONFIG.use_api) {
|
|
||||||
return 'Tag page disabled. Rimgu administrator needs to enable API for this to work.';
|
|
||||||
}
|
|
||||||
const tagID = request.params.tagID;
|
|
||||||
const result = await fetchTagPosts(tagID);
|
|
||||||
return h.view('posts', {
|
|
||||||
posts: result.items,
|
|
||||||
pageTitle: CONFIG.page_title,
|
|
||||||
tag: result,
|
|
||||||
util,
|
|
||||||
});
|
|
||||||
};
|
|
Loading…
Reference in New Issue