Compare commits

...

15 commits

Author SHA1 Message Date
090905826c Merge branch 'main' into feature/behaviourpages
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-07-12 02:37:45 +02:00
9b344c1138 Merge pull request 'added backend logging' (#136) from enhancement/cicd into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #136
2021-07-12 00:36:28 +00:00
504e43258b added backend logging
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-07-12 02:36:07 +02:00
649c80b5fc Merge pull request 'doing some things' (#135) from enhancement/cicd into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #135
2021-07-12 00:34:15 +00:00
123ece89be removed empty things..
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-07-12 02:34:01 +02:00
6d044c3271 changed names and repos
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-07-12 02:27:31 +02:00
c9a01ac68e Two docker files
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-07-12 02:24:19 +02:00
8c91f0baaf doing some things
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-07-12 02:19:28 +02:00
8fec13cad4 Merge pull request 'feature/cicd' (#134) from feature/cicd into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #134
2021-07-12 00:13:19 +00:00
e81e079727 drone experiment
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-07-12 02:09:09 +02:00
5ab66c1e67 removed steps things 2021-07-12 02:00:08 +02:00
ce74bdeb39 ..
Some checks failed
continuous-integration/drone/push Build is failing
2021-07-12 01:58:26 +02:00
638a924f96 remove autotag 2021-07-12 01:52:40 +02:00
5bb2aa73e1 First drone-thing
Some checks failed
continuous-integration/drone/push Build is failing
2021-07-12 01:49:21 +02:00
aa26855b43 Merge pull request 'Add behavior pages (fix #119)' (#130) from feature/behaviourpages into main
Reviewed-on: #130
2021-07-11 23:29:57 +00:00
2 changed files with 41 additions and 7 deletions

37
.drone.yml Normal file
View file

@ -0,0 +1,37 @@
kind: pipeline
name: backend
steps:
- name: backend
image: plugins/docker
settings:
repo: caminsha/behaviobio
dockerfile: backend/Dockerfile
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_SECRET
when:
branch:
- main
event:
- push
---
kind: pipeline
name: frontend
steps:
- name: frontend
image: plugins/docker
settings:
repo: caminsha/behaviobio
dockerfile: frontend/Dockerfile
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_SECRET
when:
branch:
- main
event:
- push

View file

@ -4,6 +4,7 @@ import flask
import flask_sqlalchemy
import flask_praetorian
import flask_cors
import sys
db = flask_sqlalchemy.SQLAlchemy()
guard = flask_praetorian.Praetorian()
@ -223,16 +224,12 @@ def survey():
return ret, 400
@app.route('/api/protected/behavior', methods=['GET'])
@flask_praetorian.auth_required
def get_randompassword():
print("Hallo")
@app.route('/api/protected/behavior', methods=['POST'])
@flask_praetorian.auth_required
def check_password_username():
print("hallooo POST")
print("hallooo POST", file=sys.stderr)
ret = {'message': 'Top'}
return ret, 200
# Run the example