from flask_restx import Api

from src.api.ping import ping_namespace
from src.api.users.views import users_namespace
from src.api.places.views import places_namespace
from src.api.reviews.views import reviews_namespace

api = Api(version="1.0", title="Geo Flask API", doc="/doc")

api.add_namespace(ping_namespace, path="/ping")
api.add_namespace(users_namespace, path="/users")
api.add_namespace(places_namespace, path="/places")
api.add_namespace(reviews_namespace, path="/reviews")
