Skip to content

Commit 269d6aa

Browse files
authored
partner route
1 parent 81522ce commit 269d6aa

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { partners } from '#site/next-data/providers/partnerData';
2+
3+
export const GET = async () => {
4+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5+
const list = partners.map(({ logo, ...data }) => {
6+
return data;
7+
});
8+
return Response.json(list);
9+
};
10+
11+
export const revalidate = 5000;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const partners = [
2+
{
3+
name: 'Microsoft',
4+
url: 'https://microsoft.com',
5+
logo: 'ToDo', // SVG
6+
categories: ['Direct Partner'],
7+
},
8+
];
9+
10+
export { partners };

0 commit comments

Comments
 (0)