Chuan Miao 9 gadi atpakaļ
vecāks
revīzija
4cab3ffb4f
2 mainītis faili ar 0 papildinājumiem un 30 dzēšanām
  1. 0 28
      applications/service/routes.py
  2. 0 2
      routes.py

+ 0 - 28
applications/service/routes.py

@@ -1,33 +1,5 @@
 # -*- coding: utf-8 -*-
 
-#  This is an app-specific example router
-#
-#  This simple router is used for setting languages from app/languages directory
-#  as a part of the application path:  app/<lang>/controller/function
-#  Language from default.py or 'en' (if the file is not found) is used as
-#  a default_language
-#
-# See <web2py-root-dir>/router.example.py for parameter's detail
-#-------------------------------------------------------------------------------------
-# To enable this route file you must do the steps:
-#
-# 1. rename <web2py-root-dir>/router.example.py to routes.py
-# 2. rename this APP/routes.example.py to APP/routes.py
-#    (where APP - is your application directory)
-# 3. restart web2py (or reload routes in web2py admin interfase)
-#
-# YOU CAN COPY THIS FILE TO ANY APPLICATION'S ROOT DIRECTORY WITHOUT CHANGES!
-
-
-#NOTE! To change language in your application using these rules add this line
-#in one of your models files:
-#   if request.uri_language: T.force(request.uri_language)
-
-# routes_in = (
-#     ('/service/sql/(?P<group>\w+)/(?P<sensor>\w+)', '/service/sql/data/\g<group>/\g<sensor>'),
-#     ('/service/sql/(?P<group>\w+)/(?P<sensor>\w+)\.$anything', '/service/sql/data/\g<group>/\g<sensor>\.$anything'),
-# )
-
 routes_in = (
 	(r'/service/sql/(?P<controller>index|modules)', r'/service/sql/\g<controller>'),
 	(r'/service/sql/$anything', r'/service/sql/api/$anything'),

+ 0 - 2
routes.py

@@ -33,8 +33,6 @@ routes_app = ((r'/(?P<app>welcome|admin|app|service)\b.*', r'\g<app>'),
 BASE = ''  # optonal prefix for incoming URLs
 
 routes_in = (
-    ('/service/sql/(?P<group>\w+)/(?P<sensor>\w+)', '/service/sql/data/\g<group>/\g<sensor>'),
-    ('/service/sql/(?P<group>\w+)/(?P<sensor>\w+)\.$anything', '/service/sql/data/\g<group>/\g<sensor>\.$anything'),
     # do not reroute admin unless you want to disable it
     (BASE + '/admin', '/admin/default/index'),
     (BASE + '/admin/$anything', '/admin/$anything'),