This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| buildscript { | |
| ext { | |
| buildToolsVersion = "28.0.3" | |
| minSdkVersion = 19 | |
| compileSdkVersion = 28 | |
| targetSdkVersion = 26 | |
| supportLibVersion = "28.0.0" | |
| googlePlayServicesVersion = "15.0.1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const https = require('https'); // Replace with http if necessary | |
| const path = require('path'); | |
| // Build our own fetch | |
| const fetchUrl = (url) => { | |
| return new Promise((resolve, reject) => { | |
| https.get(url, distant => { | |
| let response = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <meta property="og:url" content="%SERVER_META_URL%" /> | |
| <meta property="og:type" content="%SERVER_META_TYPE%" /> | |
| <meta property="og:title" content="%SERVER_META_TITLE%" /> | |
| <meta property="og:description" content="%SERVER_META_DESCRIPTION%" /> | |
| <meta property="og:image" content="%SERVER_META_IMAGE%" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * My API Sandbox | |
| * | |
| */ | |
| Sandbox.define('/addMessage','POST', function(req, res){ | |
| if (!req.is('application/json')) { | |
| return res.send(400, 'Invalid content type, expected application/json'); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: mit |