novitacarlen commited on
Commit
f3f8908
·
1 Parent(s): ce5b8bd

feat: update key

Browse files
Files changed (1) hide show
  1. src/app/api/share-link/route.ts +1 -2
src/app/api/share-link/route.ts CHANGED
@@ -1,6 +1,5 @@
1
  import { NextRequest, NextResponse } from 'next/server';
2
 
3
- const AUTH_TOKEN = "zf2iteadhSNNaGqo3GZ";
4
  const BASE_URL = "https://anysite-gallery.novita.ai";
5
 
6
  export async function POST(request: NextRequest) {
@@ -11,7 +10,7 @@ export async function POST(request: NextRequest) {
11
  method: 'POST',
12
  headers: {
13
  'Content-Type': 'application/json',
14
- 'x-token': AUTH_TOKEN,
15
  },
16
  body: JSON.stringify({
17
  filename,
 
1
  import { NextRequest, NextResponse } from 'next/server';
2
 
 
3
  const BASE_URL = "https://anysite-gallery.novita.ai";
4
 
5
  export async function POST(request: NextRequest) {
 
10
  method: 'POST',
11
  headers: {
12
  'Content-Type': 'application/json',
13
+ 'x-token': process.env.ANYSITE_GALLERY_AUTH_TOKEN || "",
14
  },
15
  body: JSON.stringify({
16
  filename,