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:
		| @@ -2,7 +2,7 @@ FROM node:17-alpine | ||||
|  | ||||
| WORKDIR /app | ||||
|  | ||||
| COPY ./ /app | ||||
| COPY server.js /app/server.js | ||||
|  | ||||
| RUN npm install fastify | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,2 @@ | ||||
| .lowdefy/** | ||||
| .env | ||||
| .drone.yml | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user