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 app.controllers import AuthController
|
||||
from controllers import AuthController
|
||||
|
||||
# Inisialisasi blueprint
|
||||
auth_blueprint = Blueprint("auth", __name__)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# /blueprints/user.py
|
||||
|
||||
from flask import Blueprint
|
||||
from app.controllers import UserController
|
||||
from controllers import UserController
|
||||
|
||||
user_blueprint = Blueprint("user", __name__)
|
||||
user_controller = UserController()
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
from flask import jsonify, request
|
||||
from app.services import UserService
|
||||
from app.services import AuthService
|
||||
from services import UserService
|
||||
from services import AuthService
|
||||
|
||||
|
||||
class AuthController:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# /controllers/user_controller.py
|
||||
from flask import jsonify
|
||||
from app.services import UserService
|
||||
from services import UserService
|
||||
|
||||
|
||||
class UserController:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from flask import Flask
|
||||
from app.blueprints import auth_blueprint, user_blueprint
|
||||
from blueprints import auth_blueprint, user_blueprint
|
||||
|
||||
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:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from app.repositories import UserRepository
|
||||
from repositories import UserRepository
|
||||
|
||||
|
||||
class UserService:
|
||||
|
|
Loading…
Reference in New Issue