srg/srgcat/urls.py
2024-04-26 12:43:00 +03:00

67 lines
4.8 KiB
Python

from django.urls import path, re_path, register_converter, include
from . import views
from . import utils
"""
https://www.webforefront.com/django/accessurlparamstemplates.html
"""
register_converter(utils.FloatConverter, 'float')
urlpatterns = [
path('', views.index, name='art-xc survey index'),
path('srga', views.get_name, name='srga'),
path('aladin', views.show_aladin_healpix, name='art-xc aladin healpix'),
path('stats', views.show_stats, name='show stats'),
path('stats/<int:group_id>/group', views.show_stats_by_group, name='show stats by group'),
path('gaia', views.show_gaia, name='skymap sources gaia'),
path('heasarc', views.show_heasarc, name='skymap sources heasarc'),
path('simbad', views.show_simbad, name='skymap sources simbad'),
path('integral2020', views.show_integral2020, name='skymap sources integral2020'),
path('intrefcat', views.show_intrefcat, name='skymap sources intrefcat'),
path('intrefcat_csv', views.get_intrefcat_csv, name='skymap sources intrefcat csv'),
path('xss', views.show_xss, name='skymap sources xss'),
path('xss_csv', views.get_xss_csv, name='skymap sources xss csv'),
path('csv', views.get_csv, name='skymap sources csv'),
path('3maxi', views.show_3maxi, name='skymap sources 3maxi'),
path('3maxi_csv', views.get_3maxi_csv, name='skymap sources 3maxi csv'),
path('maxi_gsc', views.show_maxi_gsc, name='skymap sources maxi gsc'),
path('maxi_gsc_csv', views.get_maxi_gsc_csv, name='skymap sources maxi gsc csv'),
path('swiftbat105m', views.show_swiftbat105m, name='skymap sources swiftbat105m'),
path('swiftbat105m_csv', views.get_swiftbat105m_csv, name='skymap sources swiftbat105m csv'),
path('rass2rxs', views.show_rass2rxs, name='skymap sources rass2rxs'),
path('rass2rxs_csv', views.get_rass2rxs_csv, name='skymap sources rass2rxs csv'),
path('xmmsl2', views.show_xmmsl2, name='skymap sources xmmsl2'),
path('xmmsl2_csv', views.get_xmmsl2_csv, name='skymap sources xmmsl2 csv'),
path('exclude_allsky', views.show_exclude_allsky, name='skymap sources exclude allsky'),
path('exclude_allsky_csv', views.get_exclude_allsky, name='skymap sources exclude allsky csv'),
path('latest', views.show_latest, name='skymap sources latest'),
path('erosita', views.show_erosita_matched_catalogs, name='skymap sources erosita catalogs'),
path('erosita/<int:catalog_id>/list', views.show_erosita_matched_catalog, name='skymap sources erosita catalog list'),
path('erosita/<int:catalog_id>/matched', views.show_erosita_matched, name='skymap sources erosita matched'),
path('erosita/<int:catalog_id>/nomatch', views.show_erosita_nomatch, name='skymap sources erosita nomatch'),
path('target', views.get_target_survey_post, name='target survey POST'),
path('target_get', views.get_target_survey_get, name='target survey GET'),
path('ddumps', views.show_srg_data_dumps, name='srg data dumps'),
path('<int:cat_id>/info', views.show_cat, name='show info'),
path('<int:dump_id>/ddump', views.show_data_dump, name='show data dump'),
path('<int:dump_id>/ddump/update', views.update_catalog_data_dump, name='update catalog data dump'),
path('create_new_selection', views.create_new_selection, name='create new selection'),
path('session', views.user_session_parameters, name='user session parameters'),
path('edit_all_selections', views.edit_all_selections, name='edit all selections'),
path('<int:selection_id>/selection', views.show_selection, name='show selection'),
path('<int:selection_id>/selection/edit', views.edit_selection, name='edit selection'),
path('<int:selection_id>/selection/delete', views.delete_selection, name='delete selection'),
path('<int:selection_id>/selection/download', views.download_selection, name='download selection'),
path('<int:selection_id>/selection/<int:skymapsource_id>/add', views.add_skymapsource_to_selection, name='add to selection'),
path('<int:selection_id>/selection/<int:skymapsource_id>/delete', views.delete_skymapsource_in_selection, name='delete in selection'),
path('<int:dump_id>/<int:skymap_id>/skymap', views.show_dump_skymap, name='show dump sky map'),
path('<int:skymap_id>/skymap', views.show_skymap, name='show sky map'),
path('<int:skymap_id>/skymap_radec/<float:ra>/<float:dec>/', views.show_skymap_radec, name='show sky map radec'),
path('<int:field>/field_radec/<float:ra>/<float:dec>/', views.show_field_radec, name='show field radec'),
path('<int:skymap_id>/name_skymap', views.show_skymap_by_name, name='show sky map by name'),
path('skymap', views.show_skymap_form, name='show sky map form'),
path('<int:artsource_id>/artsource', views.show_artsource, name='show art source'),
path('<int:skymapsource_id>/skymapsource', views.show_skymapsource, name='show skymap source'),
]