attorest/atto-rest

View on GitHub
src/routes/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { response, Input } from '../atto/io';

export const read = async (input: Input) => {
    return await response({
        handler: 'get',
        ...input
    })
}

export const write =  async (input: Input) => {
    return await response({
        handler: 'post',
        ...input
    })
}