🏗️ separate http and internal service
separate between internal and http service due security concern in auth module
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { Context } from "elysia";
|
||||
import { returnWriteResponse } from "../../../helpers/callback/httpResponse";
|
||||
import { githubCallbackService } from "../services/githubCallback.service";
|
||||
import { githubCallbackService } from "../services/http/githubCallback.service";
|
||||
import { mainErrorHandler } from "../../../helpers/error/handler";
|
||||
|
||||
export const githubCallbackController = async (
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { Context } from "elysia";
|
||||
import { returnReadResponse } from "../../../helpers/callback/httpResponse";
|
||||
import { githubRequestService } from "../services/githubRequest.service";
|
||||
import { githubRequestService } from "../services/http/githubRequest.service";
|
||||
|
||||
export const githubRequestController = async (ctx: Context) => {
|
||||
const loginUrl = await githubRequestService();
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { Context } from "elysia";
|
||||
import { returnWriteResponse } from "../../../helpers/callback/httpResponse";
|
||||
import { mainErrorHandler } from "../../../helpers/error/handler";
|
||||
import { googleCallbackService } from "../services/googleCallback.service";
|
||||
import { googleCallbackService } from "../services/http/googleCallback.service";
|
||||
|
||||
export const googleCallbackController = async (
|
||||
ctx: Context & { query: { code: string; state: string } }
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { Context } from "elysia";
|
||||
import { mainErrorHandler } from "../../../helpers/error/handler";
|
||||
import { googleRequestService } from "../services/googleRequest.service";
|
||||
import { googleRequestService } from "../services/http/googleRequest.service";
|
||||
import { returnReadResponse } from "../../../helpers/callback/httpResponse";
|
||||
|
||||
export const googleRequestController = async (ctx: Context) => {
|
||||
|
||||
Reference in New Issue
Block a user