Skip to content

Commit

Permalink
feat #2/ deactivate invitation link
Browse files Browse the repository at this point in the history
  • Loading branch information
SamixYasuke committed Jul 22, 2024
2 parents d6cf2c1 + 9c86940 commit 8b3b9c8
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 93 deletions.
34 changes: 0 additions & 34 deletions src/controllers/BlogController.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/controllers/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// silence is golden
export * from "./AuthController";
export * from "./UserController";
export * from "./BlogController"
export * from "./HelpController";
export * from "./NotificationController";
export * from "./NotificationController";
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
notificationRouter,
smsRouter,
inviteRoute,
blogRoute,
} from "./routes";

import { routeNotFound, errorHandler } from "./middleware";
Expand Down Expand Up @@ -50,7 +49,6 @@ server.use("/api/v1/auth", authRoute);
server.use("/api/v1/help-center", helpRouter);
server.use("/api/v1/sms", smsRouter);
server.use("/api/v1", testimonialRoute);
server.use("/api/v1/blogs", blogRoute);
server.use("/api/v1/invite", inviteRoute);
server.use("/api/v1/docs", swaggerUi.serve, swaggerUi.setup(swaggerSpec));
server.use(routeNotFound);
Expand Down
1 change: 0 additions & 1 deletion src/middleware/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from "./error";
export * from "./auth";
export * from "./methodNotAllowed";
export * from "./verifyjwt";
8 changes: 0 additions & 8 deletions src/middleware/methodNotAllowed.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/routes/blog.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export * from "./user";
export * from "./help-center";
export * from "./testimonial";
export * from "./notificationsettings";
export * from "./blog";
export * from "./invitation";
export * from "./sms";
export * from "./notificationsettings";
22 changes: 0 additions & 22 deletions src/services/blog.services.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/services/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * from "./auth.services";
export * from "./user.services";
export * from "./blog.services";
export * from "./help.services";
export * from "./invitation.service";
11 changes: 0 additions & 11 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@ import { User } from "../models";
import { Request } from "express";
import { UserRole } from "../enums/userRoles";

export interface PaginatedBlogResponse {
count: number;
next: string | null;
previous: string | null;
results: Blog[];
}

export interface IBlogService {
getPaginatedBlogPosts(page: number, pageSize: number): Promise<PaginatedBlogResponse>;
}

export interface IUserService {
getUserById(id: string): Promise<User | null>;
getAllUsers(): Promise<User[]>;
Expand Down

0 comments on commit 8b3b9c8

Please sign in to comment.