We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23675ae + 7c99c87 commit 62805bcCopy full SHA for 62805bc
index.js
@@ -1,10 +1,21 @@
1
+// Example Application for Frame.io's custom action feature.
2
+
3
const express = require('express');
4
const bodyParser = require('body-parser');
5
const app = express();
6
const port = process.env.PORT || 3000;
7
8
app.use(bodyParser.json());
9
10
+// GET is not used with custom actions, but tools like Glitch or Postman are often set to try a GET request.
11
+// This is provided so you don't receive a 'Can't GET' notification.
12
13
+app.get('/', function (req, res) {
14
+ res.end('Hello World');
15
+});
16
17
+// Send a POST request to /actions to create a form in the Frame.io web app
18
19
app.post('/actions', function (req, res) {
20
if (req.body.data) {
21
const { name, color } = req.body.data;
0 commit comments