@@ -52,7 +52,6 @@ def get_qr():
def send_static(filename):
return static_file(filename, root='rest/static')
-
@route('/<route:re:(upload|goto)>/open')
def _get_clip(route):
return template('form-open', tool=route, action=f'/{route}', method='get')
@@ -14,7 +14,7 @@ SELECT 'New' AS title
SELECT 'Download' AS title
, 2 AS width
, 'gray-500' AS color
-, 'https://shandan.one/clip/'||$hash||'?raw=true' AS link
+, 'https://shandan.one/clip/download.sql?hash='||$hash AS link
;
SELECT 'form' AS component