1
0
Fork 0
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:
mat 2023-08-12 23:29:40 -05:00
parent 1c3467dd41
commit 058f004c53

View 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'],
})
}