UNPKG
closeheat
Version:
latest (2.0.0)
2.0.0
0.19.5
0.19.4
0.19.3
0.19.2
0.19.1
0.19.0
0.18.0
0.17.0
0.16.0
0.15.0
0.14.0
0.13.14
0.13.13
0.13.12
0.13.11
0.13.10
0.13.9
0.13.8
0.13.7
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.7
0.12.6
0.12.5
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.0
0.10.0
0.9.2
0.9.1
0.9.0
0.8.2
0.8.1
0.8.0
0.7.2
0.7.1
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
Static Website Hosting with CMS without touching your code.
github.com/closeheat/cli
closeheat/cli
closeheat
/
test
/
helpers
/
test_api.coffee
13 lines
(10 loc)
•
266 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
express =
require
'express'
bodyParser =
require
'body-parser'
module
.exports =
class
TestApi
constructor:
->
@routes
= express()
@routes
.use(bodyParser.urlencoded(
extended:
false
))
@routes
.use(bodyParser.json())
start:
->
@routes
.listen(
1234
)