mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
14 lines
326 B
JavaScript
14 lines
326 B
JavaScript
// @flow
|
|
import { type AppContext } from '../Roleypoly'
|
|
import { type Context } from 'koa'
|
|
export default ($: AppContext) => ({
|
|
// i want RPC to be *dead* simple.
|
|
// probably too simple.
|
|
hello (_: Context, hello: string) {
|
|
return `hello, ${hello}!`
|
|
},
|
|
|
|
testJSON (_: Context, inobj: {}) {
|
|
return inobj
|
|
}
|
|
})
|