Skip to content

Instantly share code, notes, and snippets.

@MSakamaki
Created October 3, 2018 05:19
Show Gist options
  • Save MSakamaki/dffa8b1e5e11bff064f9a2dc906182a6 to your computer and use it in GitHub Desktop.
Save MSakamaki/dffa8b1e5e11bff064f9a2dc906182a6 to your computer and use it in GitHub Desktop.
mock library specs memo

feature

use decorators api

@Api({
  url: '/api/hoge/:id'
  regexp: '/api/hoge/[0-9]+',
})
export MyApi {

  @get()
  async get(req ,res) {
    return res.result(200, { foo: 'bar' });
  }
}

anguler schematics

https://www.npmjs.com/package/@angular-devkit/schematics

parameter

  • name
  • url
  • regexp (option)
  • project (anguler cli project)

Use deno when http server comes

denoland/deno#726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment