WIP
This commit is contained in:
parent
ed2a284102
commit
0a2cdbbe8f
17 changed files with 197 additions and 272 deletions
0
app/interface/__init__.py
Normal file
0
app/interface/__init__.py
Normal file
|
|
@ -3,13 +3,13 @@
|
|||
|
||||
import logging
|
||||
from flask import request, jsonify, abort
|
||||
from core import app
|
||||
from models.site import Site
|
||||
from models.comment import Comment
|
||||
from model.site import Site
|
||||
from model.comment import Comment
|
||||
from conf import config
|
||||
from core import processor
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
app = config.flaskapp()
|
||||
|
||||
@app.route("/ping", methods=['GET'])
|
||||
def ping():
|
||||
|
|
|
|||
|
|
@ -4,13 +4,13 @@
|
|||
import logging
|
||||
from datetime import datetime
|
||||
from flask import request, abort, redirect
|
||||
from core import app
|
||||
from models.site import Site
|
||||
from models.comment import Comment
|
||||
from model.site import Site
|
||||
from model.comment import Comment
|
||||
from conf import config
|
||||
from helpers.hashing import md5
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
app = config.flaskapp()
|
||||
|
||||
@app.route("/newcomment", methods=["POST"])
|
||||
def new_form_comment():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue