Start fleshing out API for web/mobile
This commit is contained in:
parent
2a08c64878
commit
7d9377e7ea
|
@ -4,7 +4,7 @@
|
|||
<title>intval 3</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="/frame">
|
||||
<form method="POST" action="/frame">
|
||||
|
||||
</form>
|
||||
</body>
|
||||
|
|
6
index.js
6
index.js
|
@ -19,6 +19,8 @@ let app = restify.createServer({
|
|||
|
||||
function createServer () {
|
||||
app.get('/', index)
|
||||
app.get('/dir', rDir)
|
||||
app.post('/dir', rDir)
|
||||
app.get('/frame', rFrame)
|
||||
app.post('/frame', rFrame)
|
||||
app.get('/sequence', () => {})
|
||||
|
@ -29,6 +31,10 @@ function createServer () {
|
|||
})
|
||||
}
|
||||
|
||||
function rDir (req, res, next) {
|
||||
|
||||
}
|
||||
|
||||
function rFrame (req, res, next) {
|
||||
intval.frame()
|
||||
res.send({})
|
||||
|
|
Loading…
Reference in New Issue