Import updates

This commit is contained in:
Darren Clarke 2023-07-11 13:48:05 +00:00 committed by GitHub
parent 73fdb6e5d1
commit 53514d68cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 85 additions and 90 deletions

View file

@ -1,5 +1,5 @@
import NextAuth from "next-auth";
import { authOptions } from "@/app/_lib/auth";
import { authOptions } from "app/_lib/auth";
const handler = NextAuth(authOptions);

View file

@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from "next/server";
import { getServerSession } from "next-auth";
import { authOptions } from "@/app/_lib/auth";
import { getUserMetadata, saveUserMetadata } from "@/app/_lib/opensearch";
import { authOptions } from "app/_lib/auth";
import { getUserMetadata, saveUserMetadata } from "app/_lib/opensearch";
export const POST = async (req: NextRequest) => {
const session = await getServerSession(authOptions);

View file

@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from "next/server";
import { getServerSession } from "next-auth";
import { authOptions } from "@/app/_lib/auth";
import { getUserMetadata, saveUserMetadata } from "@/app/_lib/opensearch";
import { authOptions } from "app/_lib/auth";
import { getUserMetadata, saveUserMetadata } from "app/_lib/opensearch";
export const POST = async (req: NextRequest) => {
const session = await getServerSession(authOptions);

View file

@ -1,7 +1,7 @@
import { NextResponse } from "next/server";
import { getServerSession } from "next-auth";
import { authOptions } from "@/app/_lib/auth";
import { getUserMetadata } from "@/app/_lib/opensearch";
import { authOptions } from "app/_lib/auth";
import { getUserMetadata } from "app/_lib/opensearch";
export const GET = async () => {
const session = await getServerSession(authOptions);

View file

@ -1,5 +1,5 @@
import { NextResponse } from "next/server";
import { getTrends } from "@/app/_lib/opensearch";
import { getTrends } from "app/_lib/opensearch";
export const GET = async () => {
const results = await getTrends(5);

View file

@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from "next/server";
import { getServerSession } from "next-auth";
import { authOptions } from "@/app/_lib/auth";
import { createUserVisualization } from "@/app/_lib/opensearch";
import { authOptions } from "app/_lib/auth";
import { createUserVisualization } from "app/_lib/opensearch";
export const POST = async (req: NextRequest) => {
const session = await getServerSession(authOptions);

View file

@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from "next/server";
import { getServerSession } from "next-auth";
import { authOptions } from "@/app/_lib/auth";
import { deleteUserVisualization } from "@/app/_lib/opensearch";
import { authOptions } from "app/_lib/auth";
import { deleteUserVisualization } from "app/_lib/opensearch";
export const POST = async (req: NextRequest, res: NextResponse) => {
const session = await getServerSession(authOptions);

View file

@ -1,5 +1,5 @@
import { NextRequest, NextResponse } from "next/server";
import { performQuery } from "@/app/_lib/opensearch";
import { performQuery } from "app/_lib/opensearch";
export const GET = async (req: NextRequest) => {
const searchQuery = req.nextUrl.searchParams.get("searchQuery");

View file

@ -1,7 +1,7 @@
import { NextRequest, NextResponse } from "next/server";
import { getServerSession } from "next-auth";
import { authOptions } from "@/app/_lib/auth";
import { updateUserVisualization } from "@/app/_lib/opensearch";
import { authOptions } from "app/_lib/auth";
import { updateUserVisualization } from "app/_lib/opensearch";
export const POST = async (req: NextRequest) => {
const session = await getServerSession(authOptions);