web: added the base for the web project
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { validateSdkRequest } from "@/server/auth";
|
||||
import { createError, handleError } from "@/server/exceptions";
|
||||
import { tickProfileProperty } from "@/services/profile.service";
|
||||
import { tickProfileProperty } from "@/server/services/profile.service";
|
||||
import { type ProfileIncrementPayload } from "@mixan/types";
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
@@ -15,7 +15,7 @@ export default async function handler(req: Request, res: NextApiResponse) {
|
||||
|
||||
try {
|
||||
// Check client id & secret
|
||||
await validateSdkRequest(req)
|
||||
await validateSdkRequest(req);
|
||||
|
||||
const profileId = req.query.profileId as string;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { validateSdkRequest } from "@/server/auth";
|
||||
import { createError, handleError } from "@/server/exceptions";
|
||||
import { tickProfileProperty } from "@/services/profile.service";
|
||||
import { tickProfileProperty } from "@/server/services/profile.service";
|
||||
import { type ProfileIncrementPayload } from "@mixan/types";
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { validateSdkRequest } from "@/server/auth";
|
||||
import { db } from "@/server/db";
|
||||
import { createError, handleError } from "@/server/exceptions";
|
||||
import { getProfile } from "@/services/profile.service";
|
||||
import { getProfile } from "@/server/services/profile.service";
|
||||
import { type ProfilePayload } from "@mixan/types";
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user