service/tests/api/echo.js

14 lines
361 B
JavaScript
Raw Permalink Normal View History

import service from "apigo.cc/gojs/service"
import co from "apigo.cc/gojs/console"
import u from "apigo.cc/gojs/util"
function main() {
service.register({ path: '/echo2', noLog200: true }, ({ args, response }) => {
// setTimeout(() => {
// response.end(args.name)
// }, 10)
u.sleep(10)
return args.name
})
}