13 lines
463 B
TypeScript
13 lines
463 B
TypeScript
import { defineEndpoints } from '../types.js'
|
|
|
|
export const REMOTE_ENDPOINTS = defineEndpoints({
|
|
getConfig: { path: '/config', method: 'GET' },
|
|
saveConfig: { path: '/config', method: 'POST' },
|
|
getScreenshot: { path: '/screenshot', method: 'GET' },
|
|
saveScreenshot: { path: '/screenshot', method: 'POST' },
|
|
getData: { path: '/data', method: 'GET' },
|
|
saveData: { path: '/data', method: 'POST' },
|
|
})
|
|
|
|
export type RemoteEndpoints = typeof REMOTE_ENDPOINTS
|