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
| { | |
| "port": 8080, | |
| "mappings": [{ | |
| "match": "^/$", | |
| "file": "./webapp/static.html" | |
| }, { | |
| "match": "^/(.*)", | |
| "file": "./webapp/$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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>OpenUI5 Demo App</title> | |
| <script id="sap-ui-bootstrap" | |
| src="https://openui5.hana.ondemand.com/1.76.0/resources/sap-ui-core.js" | |
| data-sap-ui-theme="sap_fiori_3" | |
| data-sap-ui-libs="sap.m" | |
| data-sap-ui-resourceroots='{"Demo": "./"}' |
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
| <html /> |
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
| require('reserve/mock')({ | |
| port: 8080, | |
| mappings: [{ | |
| match: /^\/(.*)/, | |
| file: path.join(__dirname, '$1') | |
| }] | |
| }) | |
| .then(mocked => mocked.request('GET', '/')) | |
| .then(response => { | |
| assert(response.statusCode === 200) |
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": "express-session", | |
| "options" : { | |
| "secret": "keyboard cat", | |
| "resave": false, | |
| "saveUninitialized": true | |
| } | |
| } |
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
| module.exports = async (request, response) => response.setHeader('Access-Control-Allow-Origin', '*') |
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
| { | |
| "custom": "./cors.js" | |
| } |
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
| { | |
| "match": "^/proxy/(https?)/(.*)", | |
| "url": "$1://$2" | |
| } |
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
| const { serve } = require('reserve') | |
| serve({ /* configuration */ }) | |
| .on('ready', ({ url }) => { | |
| console.log(`Server running at ${url}`) | |
| }) |
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
| const { check } = require('reserve') | |
| check({ | |
| port: 8080, | |
| mappings: [{ | |
| /* ... */ | |
| }] | |
| }).then(configuration => /* ... */) |