mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 14:46:04 +00:00
add /.json
This commit is contained in:
parent
1c3467dd41
commit
058f004c53
1 changed files with 17 additions and 0 deletions
17
src/routes/.json/+server.ts
Normal file
17
src/routes/.json/+server.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { json, type RequestHandler } from '@sveltejs/kit'
|
||||
|
||||
export const prerender = true
|
||||
|
||||
// this page exists so requesting the website with Accept: application/json works
|
||||
|
||||
export const GET: RequestHandler = async ({}) => {
|
||||
return json({
|
||||
title: 'matdoesdev',
|
||||
description: [
|
||||
"I'm mat, I do full-stack software development.",
|
||||
"This portfolio contains my blog posts and links to some of the projects I've made.",
|
||||
],
|
||||
socials: ['//github.com/mat-1"', '//matrix.to/#/@mat:matdoes.dev', '//ko-fi.com/matdoesdev'],
|
||||
links: ['/blog', '/projects'],
|
||||
})
|
||||
}
|
Loading…
Add table
Reference in a new issue