public api fixed

This commit is contained in:
Owen Rees
2023-06-15 15:05:20 +02:00
parent fb9966fc25
commit 83f9cfcd53
2 changed files with 10 additions and 5 deletions
+1 -2
View File
@@ -6,9 +6,8 @@ import { dateOrderingFrance } from "@/utils/dbDateOrdering";
* @route /api/tournaments/france
* @internal
*/
// TODO add headers to response content-type application/json
export const revalidate = 3600; // revalidate cache every 6 hours
async function GET() {
export async function GET() {
const headers = {
"Content-Type": "application/json",
};