diff --git a/src/Untitled-1 b/core/Untitled-1 similarity index 100% rename from src/Untitled-1 rename to core/Untitled-1 diff --git a/src/__pycache__/handler.cpython-36.pyc b/core/__pycache__/handler.cpython-36.pyc similarity index 100% rename from src/__pycache__/handler.cpython-36.pyc rename to core/__pycache__/handler.cpython-36.pyc diff --git a/src/__pycache__/handler.cpython-38.pyc b/core/__pycache__/handler.cpython-38.pyc similarity index 100% rename from src/__pycache__/handler.cpython-38.pyc rename to core/__pycache__/handler.cpython-38.pyc diff --git a/src/__pycache__/handler.cpython-39.pyc b/core/__pycache__/handler.cpython-39.pyc similarity index 100% rename from src/__pycache__/handler.cpython-39.pyc rename to core/__pycache__/handler.cpython-39.pyc diff --git a/src/__pycache__/route.cpython-36.pyc b/core/__pycache__/route.cpython-36.pyc similarity index 100% rename from src/__pycache__/route.cpython-36.pyc rename to core/__pycache__/route.cpython-36.pyc diff --git a/src/__pycache__/route.cpython-38.pyc b/core/__pycache__/route.cpython-38.pyc similarity index 100% rename from src/__pycache__/route.cpython-38.pyc rename to core/__pycache__/route.cpython-38.pyc diff --git a/src/__pycache__/route.cpython-39.pyc b/core/__pycache__/route.cpython-39.pyc similarity index 100% rename from src/__pycache__/route.cpython-39.pyc rename to core/__pycache__/route.cpython-39.pyc diff --git a/src/handler.py b/core/handler.py similarity index 100% rename from src/handler.py rename to core/handler.py diff --git a/src/jwt.py b/core/jwt.py similarity index 100% rename from src/jwt.py rename to core/jwt.py diff --git a/src/route.py b/core/route.py similarity index 82% rename from src/route.py rename to core/route.py index 0cfc8e9..fa29692 100644 --- a/src/route.py +++ b/core/route.py @@ -2,6 +2,7 @@ #!/usr/bin/env python3 from io import StringIO ## for Python 3 from http.server import BaseHTTPRequestHandler +from jwt import genaratorSecretsToken import json class Router(BaseHTTPRequestHandler): def __int__(self): @@ -20,6 +21,21 @@ class Router(BaseHTTPRequestHandler): else: return self.r_404() #return false + def get(self, url, handler)":" + pass + + def post(self, url, handler): + pass + + def __isAuth(selt, auth): + pass + + def getToken(self, authResult): + #if self.__isAuth() is True: + genaratorSecretsToken() + #else: + # self.r_403() + def parse_url(request): @@ -48,6 +64,8 @@ class Router(BaseHTTPRequestHandler): self.end_headers() + + """ def do_GET(self): pass diff --git a/server.py b/server.py index 84cd9ed..76f58ba 100755 --- a/server.py +++ b/server.py @@ -1,7 +1,7 @@ # -*- coding: UTF-8 -*- #!/usr/bin/env pyton3 from http.server import HTTPServer -from src.handler import Handler as Handler +from core.handler import Handler as Handler import os, sys, json, ssl #PORT_NUMBER = 8000 from utils.findfsdb import create_db