mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-22 19:13:37 +08:00
updated license info
This commit is contained in:
@@ -1,28 +1,42 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Onename API
|
||||
Copyright 2014 Halfmoon Labs, Inc.
|
||||
Blockstack Core
|
||||
~~~~~
|
||||
|
||||
copyright: (c) 2014-2017 by Blockstack Inc.
|
||||
copyright: (c) 2017 by Blockstack.org
|
||||
|
||||
This file is part of Blockstack Core.
|
||||
|
||||
Blockstack Core is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Blockstack Core is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Blockstack Core. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from flask import Flask, Blueprint
|
||||
from flask_https import RequireHTTPS
|
||||
from flask_sslify import SSLify
|
||||
|
||||
# Create app
|
||||
app = Flask(__name__)
|
||||
|
||||
app.config.from_object('api.settings')
|
||||
app.config.from_object('api.config')
|
||||
|
||||
if not (app.config.get('DEBUG')):
|
||||
SSLify(app)
|
||||
|
||||
# Add in blueprints
|
||||
from .auth import v1auth
|
||||
from .resolver import resolver
|
||||
|
||||
blueprints = [v1auth]
|
||||
blueprints = [resolver]
|
||||
|
||||
for blueprint in blueprints:
|
||||
app.register_blueprint(blueprint)
|
||||
|
||||
|
||||
|
||||
22
api/dkim.py
22
api/dkim.py
@@ -1,8 +1,26 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Get DKIM info from DNS
|
||||
Copyright 2015 Halfmoon Labs, Inc.
|
||||
Blockstack Core
|
||||
~~~~~
|
||||
|
||||
copyright: (c) 2014-2017 by Blockstack Inc.
|
||||
copyright: (c) 2017 by Blockstack.org
|
||||
|
||||
This file is part of Blockstack Core.
|
||||
|
||||
Blockstack Core is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Blockstack Core is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Blockstack Core. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
import socket
|
||||
|
||||
@@ -1,3 +1,28 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Blockstack Core
|
||||
~~~~~
|
||||
|
||||
copyright: (c) 2014-2017 by Blockstack Inc.
|
||||
copyright: (c) 2017 by Blockstack.org
|
||||
|
||||
This file is part of Blockstack Core.
|
||||
|
||||
Blockstack Core is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Blockstack Core is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Blockstack Core. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
import json
|
||||
import requests
|
||||
from flask import request
|
||||
|
||||
@@ -25,7 +25,7 @@ This file is part of Blockstack Core.
|
||||
|
||||
import re
|
||||
import json
|
||||
from .settings import MAX_PROFILE_LIMIT
|
||||
from .config import MAX_PROFILE_LIMIT
|
||||
|
||||
|
||||
def build_api_call_object(text):
|
||||
|
||||
Reference in New Issue
Block a user