hallo
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
f20bf2f8e3
commit
8e40da01fc
@ -4,7 +4,7 @@ const url =
|
||||
process.env.NODE_ENV === "development"
|
||||
? "http://payload:3001"
|
||||
: `https://${process.env.PAYLOAD_URL}`;
|
||||
|
||||
//test
|
||||
export const getPosts = async () =>
|
||||
(await (await fetch(`${url}/api/posts`)).json()).docs as Post[];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user