Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuhtz committed Jul 23, 2024
1 parent 0abd7b8 commit e7a1c88
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions api/routers/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

router = APIRouter()

@router.get('/config/')
async def get_config():
return [{'instance': 'instance'}]
@router.get('/configuration')
async def get_configuration():
return {'instance': 'instance'}

@router.get('/config/{instance}')
async def get_config_instance_section(instance):
return [{'instance': instance}]
@router.get('/configuration/{instance}')
async def get_configuration_instance(instance):
return {'instance': instance}

@router.get('/config/{instance}/{section}')
async def get_config_instance_section(instance, section):
return [{'instance': instance}, {'section': section}]
@router.get('/configuration/{instance}/{section}')
async def get_configuration_instance_section(instance, section):
return {'instance': instance}, {'section': section}

0 comments on commit e7a1c88

Please sign in to comment.