Skip to content

Commit e052008

Browse files
committed
add basic api routes
1 parent 782a709 commit e052008

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import type { RequestHandler } from './$types'
2+
3+
export const POST: RequestHandler = ({ params }) => {
4+
return new Response(
5+
`getting POST for translations on project "${params.project}" and lang "${params.lang}"`
6+
)
7+
}
8+
9+
export const GET: RequestHandler = ({ params }) => {
10+
return new Response(
11+
`getting GET for translations on project "${params.project}" and lang "${params.lang}"`
12+
)
13+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import type { RequestHandler } from './$types'
2+
3+
export const POST: RequestHandler = ({ params }) => {
4+
return new Response(`getting post for config on project "${params.project}"`)
5+
}

0 commit comments

Comments
 (0)