Skip to content

Commit

Permalink
Merge pull request #10 from dydanz/fix/swagger
Browse files Browse the repository at this point in the history
swagger is working now
  • Loading branch information
dydanz authored Jan 19, 2025
2 parents deb2e4a + d7f7722 commit cb5a661
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions marketplace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
title='Flask Marketplace API',
version='1.0',
description='A simple marketplace API',
doc='/swagger',
doc='/api/v1/swagger',
authorizations=authorizations
)

Expand All @@ -47,9 +47,9 @@ def create_app(config_name='development'):
from marketplace.merchant.v1.routes import merchant_ns
from marketplace.health.routes import health_ns

api.add_namespace(auth_ns, path='/api/v1/user/auth')
api.add_namespace(users_ns, path='/api/v1/user/users')
api.add_namespace(merchant_ns, path='/api/v1/merchant')
api.add_namespace(health_ns, path='/api/health')
api.add_namespace(auth_ns, path='/user/auth')
api.add_namespace(users_ns, path='/user/users')
api.add_namespace(merchant_ns, path='/merchant')
api.add_namespace(health_ns, path='/health')

return app

0 comments on commit cb5a661

Please sign in to comment.