fix: move main.py into inside of app folder and doing some adjustment
This commit is contained in:
parent
a89279ee65
commit
a6639dc206
Binary file not shown.
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
from flask import Blueprint
|
from flask import Blueprint
|
||||||
from app.controllers import AuthController
|
from controllers import AuthController
|
||||||
|
|
||||||
# Inisialisasi blueprint
|
# Inisialisasi blueprint
|
||||||
auth_blueprint = Blueprint("auth", __name__)
|
auth_blueprint = Blueprint("auth", __name__)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# /blueprints/user.py
|
# /blueprints/user.py
|
||||||
|
|
||||||
from flask import Blueprint
|
from flask import Blueprint
|
||||||
from app.controllers import UserController
|
from controllers import UserController
|
||||||
|
|
||||||
user_blueprint = Blueprint("user", __name__)
|
user_blueprint = Blueprint("user", __name__)
|
||||||
user_controller = UserController()
|
user_controller = UserController()
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
from flask import jsonify, request
|
from flask import jsonify, request
|
||||||
from app.services import UserService
|
from services import UserService
|
||||||
from app.services import AuthService
|
from services import AuthService
|
||||||
|
|
||||||
|
|
||||||
class AuthController:
|
class AuthController:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# /controllers/user_controller.py
|
# /controllers/user_controller.py
|
||||||
from flask import jsonify
|
from flask import jsonify
|
||||||
from app.services import UserService
|
from services import UserService
|
||||||
|
|
||||||
|
|
||||||
class UserController:
|
class UserController:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
from app.blueprints import auth_blueprint, user_blueprint
|
from blueprints import auth_blueprint, user_blueprint
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
||||||
from app.repositories import UserRepository
|
from repositories import UserRepository
|
||||||
|
|
||||||
|
|
||||||
class AuthService:
|
class AuthService:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from app.repositories import UserRepository
|
from repositories import UserRepository
|
||||||
|
|
||||||
|
|
||||||
class UserService:
|
class UserService:
|
||||||
|
|
Loading…
Reference in New Issue