10 lines
228 B
TypeScript
10 lines
228 B
TypeScript
import { Handlers } from '$fresh/server.ts'
|
|
import { respondApi } from ':src/utils.ts'
|
|
import { publicKey } from ':src/webpush/mod.ts'
|
|
|
|
export const handler: Handlers = {
|
|
GET() {
|
|
return respondApi('success', publicKey)
|
|
},
|
|
}
|