Clone Mastodon's repository.
# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live
cd ~/live
var webpack = require("webpack"); | |
module.exports = { | |
entry: { | |
"react-reading-time": [ | |
"webpack-dev-server/client?http://localhost:8881/", | |
"webpack/hot/only-dev-server", | |
"./example/react-reading-time.jsx" | |
] }, | |
output: { | |
path: __dirname, |
<html> | |
<head> | |
<title>API Example</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var accessToken = "<your agent's client access token>"; | |
var baseUrl = "https://api.api.ai/v1/"; |
//server/controllers/_ticket-control.js | |
'use strict'; | |
const Tickets = require('../models/tickets'); | |
//=================== | |
// Create Tickets Route | |
//=================== | |
exports.createTicket = function(req, res, next) { |