this makes json API server from json format.
Write json moment api format ./sample.json
at the now.
{
apis:[
{
path:"/hoge",
response: {
"message":"json"
}
}
]
}
{
apis:[
{
path:"/hoge",
response: {
"message":"${user}"
}
}
]
model:{
"user": {"name": "hoge"}
}
}
this json is Access localhost:8080/hoge
curl localhost:8080/hoge
{"message":"json"}