fixed misconfigured route (sharing) needed to be in a folder it was affecting everything else woops

This commit is contained in:
Polaris
2024-09-07 01:37:25 -04:00
parent f197f45672
commit 7d80af20ef
4 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ export async function shareScore(token: string) {
if (!IsTokenValid) {
return {
error: "404",
error: "invalid token",
};
}

View File

@ -10,7 +10,7 @@ import {
} from "@/components/ui/dropdown-menu";
import { Button } from "@/components/ui/button";
import { MoreHorizontal } from "lucide-react";
import { generateShareToken } from "@/app/(sharing)/[token]/token";
import { generateShareToken } from "@/app/score/(sharing)/[token]/token";
interface ActionsCellProps {
row: any; //unsure what to use here
@ -25,7 +25,7 @@ const ActionsCell: React.FC<ActionsCellProps> = ({ row }) => {
if (response.error) {
setError(response.error);
} else if (response.token) {
const shareUrl = `/${response.token}/${row.original.id}`;
const shareUrl = `/score/${response.token}/${row.original.id}`;
const newTab = window.open(shareUrl, "_blank");
if (newTab) {
newTab.focus();