First attempt at using ajax call to API
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
31da1afb62
commit
2e68632e3a
@ -2,7 +2,7 @@ FROM node:17-alpine
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./ /app
|
COPY server.js /app/server.js
|
||||||
|
|
||||||
RUN npm install fastify
|
RUN npm install fastify
|
||||||
|
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
.lowdefy/**
|
.lowdefy/**
|
||||||
.env
|
.env
|
||||||
.drone.yml
|
|
@ -2,6 +2,12 @@ lowdefy: 3.23.2
|
|||||||
name: Lowdefy starter
|
name: Lowdefy starter
|
||||||
licence: MIT
|
licence: MIT
|
||||||
|
|
||||||
|
connections:
|
||||||
|
- id: my_api
|
||||||
|
type: AxiosHttp
|
||||||
|
properties:
|
||||||
|
baseURL: http://127.0.0.1:3001
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
- _ref: stage.yaml
|
- _ref: stage.yaml
|
||||||
- _ref: deploy.yaml
|
- _ref: deploy.yaml
|
||||||
|
@ -3,6 +3,19 @@ type: PageHeaderMenu
|
|||||||
properties:
|
properties:
|
||||||
title: Stage
|
title: Stage
|
||||||
|
|
||||||
|
requests:
|
||||||
|
- id: get_data
|
||||||
|
type: AxiosHttp
|
||||||
|
connectionId: api
|
||||||
|
properties:
|
||||||
|
url: /
|
||||||
|
|
||||||
|
events:
|
||||||
|
onEnter:
|
||||||
|
- id: fetch_get_data
|
||||||
|
type: Request
|
||||||
|
params: get_data
|
||||||
|
|
||||||
layout:
|
layout:
|
||||||
contentJustify: center
|
contentJustify: center
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user