최원섭

[Develop]Make Kakao Button

Showing 1 changed file with 20 additions and 0 deletions
1 +var express = require('express');
2 +var app = express();
3 +
4 +var bodyParser = require('body-parser');
5 +
6 +app.use(bodyParser.json());
7 +app.use(bodyParser.urlencoded({ extended: true}));
8 +
9 +app.get('/keyboard', function(req, res) {
10 + const menu = {
11 + "type": 'buttons',
12 + "buttons": ["시작"]
13 + };
14 + res.set({
15 + 'content-type': 'application/json'
16 + }).send(JSON.stringify(menu));
17 +});
18 +
19 +app.listen(80, function(){
20 +});