-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Somewhat working dev + build * Working API calls. * switch completely to new "/api/" style. * Conform to the API.
- Loading branch information
Showing
31 changed files
with
6,980 additions
and
47 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @license | ||
* Copyright 2024 Google LLC | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const edge = true; | ||
export const headers = { | ||
"Content-Type": "application/json", | ||
}; | ||
export const streaming = true; | ||
|
||
import { config } from "dotenv"; | ||
|
||
export default async function handler() { | ||
const { parsed, error } = config(); | ||
let result; | ||
if (error) { | ||
result = JSON.stringify({ error: "Could not retrieve secrets" }); | ||
} else { | ||
result = JSON.stringify({ parsed }); | ||
} | ||
return new Response(result, { status: 200 }); | ||
} |
Oops, something went wrong.