Skip to content
Snippets Groups Projects
Commit 971e8156 authored by Ferenc Schulcz's avatar Ferenc Schulcz
Browse files

Remove redundant endpoint adding

parent 5573aec9
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,7 @@ AUTHME_DB_HOST="172.16.25.101" ...@@ -12,8 +12,7 @@ AUTHME_DB_HOST="172.16.25.101"
def register(add_endpoint): def register(add_endpoint):
add_endpoint(endpoint_id='minecraft', handler=minecraft, permission_name='minecraft', menutext='Minecraft') add_endpoint(endpoint_id='minecraft', handler=minecraft, permission_name='minecraft', menutext='Minecraft')
add_endpoint(endpoint_id='map', handler=minecraftmap, permission_name='minecraft', menutext='Minecraft map') add_endpoint(endpoint_id='map', handler=minecraftmap, permission_name=None, menutext='Minecraft map') # adding it for public use
add_endpoint(endpoint_id='map', handler=minecraftmap, permission_name=None, menutext='Minecraft map') # adding it again for public use
add_endpoint(endpoint_id='minecraft_username', handler=minecraft_username, permission_name='minecraft', method='POST') add_endpoint(endpoint_id='minecraft_username', handler=minecraft_username, permission_name='minecraft', method='POST')
add_endpoint(endpoint_id='minecraft_password', handler=minecraft_password, permission_name='minecraft', method='POST') add_endpoint(endpoint_id='minecraft_password', handler=minecraft_password, permission_name='minecraft', method='POST')
add_endpoint(endpoint_id='minecraft_register', handler=minecraft_register, permission_name='minecraft', method='POST') add_endpoint(endpoint_id='minecraft_register', handler=minecraft_register, permission_name='minecraft', method='POST')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment