Delete h.ts

This commit is contained in:
video-prize-ranch 2022-02-21 11:03:18 -05:00
parent 07a202da8f
commit cf5a1ac18b
No known key found for this signature in database
GPG Key ID: D8EAA4C5B12A7281
1 changed files with 0 additions and 14 deletions

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