Delete h.ts

This commit is contained in:
video-prize-ranch
2022-02-21 11:03:18 -05:00
parent 07a202da8f
commit cf5a1ac18b

View File

@@ -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,
});
};