Compare commits
No commits in common. "090905826ccae9f73489fb01650d912841dd4e48" and "71cbd351d1ca3a12121ac080d8e258be4649d5ff" have entirely different histories.
090905826c
...
71cbd351d1
2 changed files with 7 additions and 41 deletions
37
.drone.yml
37
.drone.yml
|
@ -1,37 +0,0 @@
|
|||
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
|
|
@ -4,7 +4,6 @@ import flask
|
|||
import flask_sqlalchemy
|
||||
import flask_praetorian
|
||||
import flask_cors
|
||||
import sys
|
||||
|
||||
db = flask_sqlalchemy.SQLAlchemy()
|
||||
guard = flask_praetorian.Praetorian()
|
||||
|
@ -224,12 +223,16 @@ 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", file=sys.stderr)
|
||||
ret = {'message': 'Top'}
|
||||
return ret, 200
|
||||
print("hallooo POST")
|
||||
|
||||
|
||||
# Run the example
|
||||
|
|
Loading…
Reference in a new issue