Start fleshing out API for web/mobile

This commit is contained in:
mmcwilliams 2017-10-20 13:58:01 -04:00
parent 2a08c64878
commit 7d9377e7ea
2 changed files with 7 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<title>intval 3</title> <title>intval 3</title>
</head> </head>
<body> <body>
<form method="/frame"> <form method="POST" action="/frame">
</form> </form>
</body> </body>

View File

@ -19,6 +19,8 @@ let app = restify.createServer({
function createServer () { function createServer () {
app.get('/', index) app.get('/', index)
app.get('/dir', rDir)
app.post('/dir', rDir)
app.get('/frame', rFrame) app.get('/frame', rFrame)
app.post('/frame', rFrame) app.post('/frame', rFrame)
app.get('/sequence', () => {}) app.get('/sequence', () => {})
@ -29,6 +31,10 @@ function createServer () {
}) })
} }
function rDir (req, res, next) {
}
function rFrame (req, res, next) { function rFrame (req, res, next) {
intval.frame() intval.frame()
res.send({}) res.send({})