Rename timeline controllers, homeController --> homeTimelineController, etc

This commit is contained in:
Alex Gleason
2023-08-29 12:41:14 -05:00
parent b6da5a0339
commit ce4a330812
2 changed files with 10 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ import { Time } from '@/utils.ts';
import type { AppController } from '@/app.ts';
const homeController: AppController = async (c) => {
const homeTimelineController: AppController = async (c) => {
const params = paginationSchema.parse(c.req.query());
const pubkey = c.get('pubkey')!;
@@ -27,7 +27,7 @@ const publicQuerySchema = z.object({
local: booleanParamSchema.catch(false),
});
const publicController: AppController = async (c) => {
const publicTimelineController: AppController = async (c) => {
const params = paginationSchema.parse(c.req.query());
const { local } = publicQuerySchema.parse(c.req.query());
@@ -61,4 +61,4 @@ const hashtagTimelineController: AppController = async (c) => {
return c.json(statuses, 200, link ? { link } : undefined);
};
export { hashtagTimelineController, homeController, publicController };
export { hashtagTimelineController, homeTimelineController, publicTimelineController };