@@ -5,7 +5,6 @@ using StructTypes
5
5
6
6
import Rasters: Between
7
7
using CairoMakie, ImageIO, Images
8
- using
9
8
10
9
include (" tiles.jl" )
11
10
100
99
function setup_region_routes (config, auth)
101
100
reg_assess_data = setup_regional_data (config)
102
101
103
- @get (" /assess/{reg}/{rtype}" , middleware= [auth]) function (req:: Request , reg:: String , rtype:: String )
102
+ @get (" /assess/{reg}/{rtype}" , middleware= [auth])
103
+ function (req:: Request , reg:: String , rtype:: String )
104
104
qp = queryparams (req)
105
105
file_id = string (hash (qp))
106
106
mask_temp_path = _cache_location (config)
@@ -155,13 +155,15 @@ function setup_region_routes(config, auth)
155
155
return file (mask_path)
156
156
end
157
157
158
- @get (" /bounds/{reg}" , middleware= [auth]) function (req:: Request , reg:: String )
158
+ @get (" /bounds/{reg}" , middleware= [auth])
159
+ function (req:: Request , reg:: String )
159
160
rst_stack = reg_assess_data[reg]. stack
160
161
161
162
return json (Rasters. bounds (rst_stack))
162
163
end
163
164
164
- @get (" /tile/{z}/{x}/{y}" ,middleware= [auth]) function (req:: Request , z:: Int64 , x:: Int64 , y:: Int64 )
165
+ @get (" /tile/{z}/{x}/{y}" ,middleware= [auth])
166
+ function (req:: Request , z:: Int64 , x:: Int64 , y:: Int64 )
165
167
# http://127.0.0.1:8000/tile/10/10/10?region=Cairns-Cooktown&rtype=slopes&criteria_names=Depth,Slope,Rugosity&lb=-9.0,0.0,0.0&ub=-2.0,40.0,0.0
166
168
qp = queryparams (req)
167
169
file_id = string (hash (qp))
@@ -260,7 +262,8 @@ function setup_region_routes(config, auth)
260
262
end
261
263
262
264
# Parse the form data and return it
263
- @post (" /form" , middleware= [auth]) function (req)
265
+ @post (" /form" , middleware= [auth])
266
+ function (req)
264
267
data = formdata (req)
265
268
return data
266
269
end
0 commit comments