From 3fe5585092c47c081b84636d48974076c14b888a Mon Sep 17 00:00:00 2001 From: Thomas Rosenau Date: Thu, 14 Apr 2016 16:25:47 +0200 Subject: [PATCH] #1 Add second example project URLs The backend does not yet work as wanted. We need to fix #6 first. --- .../config/services/GET.mock.development.json | 6 +++- src/example2/example2-public/index.html | 29 +++++++++++++++---- src/lib/routing.js | 3 +- 3 files changed, 31 insertions(+), 7 deletions(-) diff --git a/src/example2/config/services/GET.mock.development.json b/src/example2/config/services/GET.mock.development.json index c15efe8..b096066 100644 --- a/src/example2/config/services/GET.mock.development.json +++ b/src/example2/config/services/GET.mock.development.json @@ -2,9 +2,13 @@ "active": true, "services": [ { - "active": true, "path": "exampleEndpoint", "file": "get-result.example.json" + }, { + "path": "mix-n-mock", + "error": { + "status": 500 + } } ] } diff --git a/src/example2/example2-public/index.html b/src/example2/example2-public/index.html index f489e3c..ebaeaf1 100644 --- a/src/example2/example2-public/index.html +++ b/src/example2/example2-public/index.html @@ -38,7 +38,7 @@ } button { - width: 15em; + width: 30em; height: 2em; text-align: center; } @@ -71,29 +71,48 @@

Advanced example

static file