urls.py 3.83 KB
Newer Older
Manggar Mahardhika's avatar
Manggar Mahardhika committed
1 2 3 4
from django.contrib import admin
from django.urls import path, include
from django.contrib.auth import views as auth_views
from . import views
Muhamad's avatar
Muhamad committed
5 6
from django.contrib.auth.decorators import login_required

Manggar Mahardhika's avatar
Manggar Mahardhika committed
7

Manggar Mahardhika's avatar
Manggar Mahardhika committed
8 9
app_name = 'api'
urlpatterns = [    
Manggar Mahardhika's avatar
Manggar Mahardhika committed
10 11 12
    path('search_auto', views.search_auto, name='search'),
    path('tuplah', views.tuplah, name='tuplah'),
    path('building', views.building, name='building'),
Muhamad's avatar
Muhamad committed
13
    
Manggar Mahardhika's avatar
Manggar Mahardhika committed
14 15 16 17 18
    path('jalan', views.jalan, name='jalan'),
    path('sungai', views.sungai, name='sungai'),
    path('edit', views.editpoly, name='edit'),
    path('validatedit', views.validatedit, name='validatedit'),
    path('hapus', views.hapus, name='hapus'),
Muhamad's avatar
Muhamad committed
19 20 21
    path('hasilsearch', views.hasilsearch, name='ressearch'),
    
    path('editkependudukan/', views.editkependudukan, name='kependudukan'),
Muhamad's avatar
Muhamad committed
22
    
23
    path('valideditkependudukan', views.valideditkependudukan, name='valideditkependudukan'),
24 25 26
    
    path('editspo', views.editpointsearch, name='editspo'),
    
Manggar Mahardhika's avatar
Manggar Mahardhika committed
27 28 29 30 31 32 33 34 35 36 37 38
    path('editkantor', views.editpointka, name='editkantor'),
    path('editlakes', views.editpointlk, name='editlakes'),
    path('editpks', views.editpointpks, name='editpks'),
    path('editrs', views.editpointrs, name='editrs'),
    path('editsi', views.editpointsi, name='editsi'),
    path('editsp', views.editpointsp, name='editsp'),
    path('editpom', views.editpointspbu, name='editpom'),
    path('editst', views.editpointst, name='editst'),
    path('editgl', views.editpointgl, name='editgl'),
    path('edittr', views.editpointtr, name='edittr'),
    path('editcb', views.editpointcb, name='editcb'),
    
39
    path('saveeditspo', views.editsearchpoint, name='saveeditspo'),
Manggar Mahardhika's avatar
Manggar Mahardhika committed
40 41 42 43 44 45 46 47 48 49 50
    path('rumahsakit', views.editrumahsakit, name='rumahsakit'),
    path('cagarbudaya', views.editcagarbudaya, name='cagarbudaya'),
    path('kantor', views.editkantoradmin, name='kantor'),
    path('layanankesehatan', views.editlayanankesehatan, name='layanankesehatan'),
    path('puskesmas', views.editpuskesmas, name='puskesmas'),
    path('ibadah', views.editibadah, name='ibadah'),
    path('sekolah', views.editsekolah, name='sekolah'),
    path('spbu', views.editspbu, name='spbu'),
    path('stasiun', views.editstasiun, name='stasiun'),
    path('terminal', views.editterminal, name='terminal'),
    path('gardu', views.editgardu, name='gardu'),
Muhamad's avatar
Muhamad committed
51
    
52
    path('hapus', views.hapus, name='hapus'),
53
    path('tampak', views.upload_tampak, name='tampak'),
54 55
    path('dkantor', views.deletekantoradmin, name='dkantor'),
    
Manggar Mahardhika's avatar
Manggar Mahardhika committed
56
    path('change-tipe', views.changetipe, name='change-tipe'),
Manggar Mahardhika's avatar
Manggar Mahardhika committed
57
    path('change-jenis', views.changejenis, name='change-jenis'),
58
    
Muhamad's avatar
Muhamad committed
59
    path('c_bangunan', views.createbang, name='c_bangunan'),
60 61
    path('create-jalan', views.createjalan, name='create-jalan'),
    path('create-point', views.createpoint, name='create-point'),
62
    path('c_lahan', views.createlahan, name='c_lahan'),
Muhamad's avatar
Muhamad committed
63 64 65 66 67 68 69
    
    path('edit-tuplah', login_required(views.edittuplah), name='edit-tuplah'),
    path('edit-tuplah-valid', views.edittuplahvalid, name='edit-tuplah-valid'),
    
    path('edit-jalan', views.editjalan, name='edit-jalan'),
    path('edit-jalan-valid', views.editjalanvalid, name='edit-jalan-valid'),
    path('3d-maps', views.maps3d, name='3d-maps'),
70

71
    
Muhamad's avatar
Muhamad committed
72 73 74 75 76 77
    path('deletejalan', views.deletejalan, name='hapus-jalan'),
    
    path('filt_perbaikan_kecamatan', views.filt_perbaikan_kecamatan),
    path('filt_perbaikan_desa', views.filt_perbaikan_desa),
    
    path('user-data', views.user_data, name='user-data'),
78 79
    path('deletejalan', views.deletejalan, name='hapus-jalan'),
    path('search_spes', views.search_spes, name='search_spes'),
Muhamad's avatar
Muhamad committed
80
    path('search_lanjut', views.search_lanjut, name='search_lanjut'),  
Muhamad's avatar
Muhamad committed
81 82
    path('load_point_id', views.load_point_id),
    path('edit_detail_poin', views.edit_detail_poin),
Muhamad's avatar
Muhamad committed
83
    path('dpoint', views.dpoint, name='dpoint'),
Muhamad's avatar
Muhamad committed
84 85
    
    path('download_perbaikan_data', views.download_perbaikan_data)
Manggar Mahardhika's avatar
Manggar Mahardhika committed
86
]