First attempt at using ajax call to API
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2022-01-20 16:16:35 +01:00
parent 31da1afb62
commit 2e68632e3a
5 changed files with 20 additions and 2 deletions

View File

@ -2,7 +2,7 @@ FROM node:17-alpine
WORKDIR /app
COPY ./ /app
COPY server.js /app/server.js
RUN npm install fastify

View File

@ -1,3 +1,2 @@
.lowdefy/**
.env
.drone.yml

View File

@ -2,6 +2,12 @@ lowdefy: 3.23.2
name: Lowdefy starter
licence: MIT
connections:
- id: my_api
type: AxiosHttp
properties:
baseURL: http://127.0.0.1:3001
pages:
- _ref: stage.yaml
- _ref: deploy.yaml

View File

@ -3,6 +3,19 @@ type: PageHeaderMenu
properties:
title: Stage
requests:
- id: get_data
type: AxiosHttp
connectionId: api
properties:
url: /
events:
onEnter:
- id: fetch_get_data
type: Request
params: get_data
layout:
contentJustify: center