-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
895 additions
and
969 deletions.
There are no files selected for viewing
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,14 @@ | ||
import { json, type LoaderFunction } from '@remix-run/node'; | ||
import { getMystXrefJson } from '~/utils/loaders.server'; | ||
|
||
export const loader: LoaderFunction = async ({ params }): Promise<Response> => { | ||
const { project } = params; | ||
if (!project) return new Response('myst.xref.json not found', { status: 404 }); | ||
const data = await getMystXrefJson(project); | ||
if (!data) return new Response('myst.xref.json not found', { status: 404 }); | ||
return json(data, { | ||
headers: { | ||
'Access-Control-Allow-Origin': '*', | ||
}, | ||
}); | ||
}; |
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,13 @@ | ||
import { json, type LoaderFunction } from '@remix-run/node'; | ||
import { getMystXrefJson } from '~/utils/loaders.server'; | ||
|
||
export const loader: LoaderFunction = async (): Promise<Response> => { | ||
const project = 'overview'; | ||
const data = await getMystXrefJson(project); | ||
if (!data) return new Response('myst.xref.json not found', { status: 404 }); | ||
return json(data, { | ||
headers: { | ||
'Access-Control-Allow-Origin': '*', | ||
}, | ||
}); | ||
}; |
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
Oops, something went wrong.