mirror of
https://github.com/gmemstr/sliproad.git
synced 2024-09-20 00:21:15 +01:00
New file regex.
The old regex was hard to parse and maintain, and was broken for some edge cases. Simplified it greatly and seems to work fine!
This commit is contained in:
parent
a686cb8c53
commit
1ba1a14807
|
@ -58,7 +58,7 @@ func Init() *mux.Router {
|
||||||
HandleProvider(),
|
HandleProvider(),
|
||||||
)).Methods("GET", "POST")
|
)).Methods("GET", "POST")
|
||||||
|
|
||||||
r.Handle(`/api/files/{provider:[a-zA-Z0-9]+}/{file:[a-zA-Z0-9=\-\/\s.,&_+]+}`, Handle(
|
r.Handle(`/api/files/{provider:[a-zA-Z0-9]+}/{file:.+}`, Handle(
|
||||||
HandleProvider(),
|
HandleProvider(),
|
||||||
)).Methods("GET", "POST")
|
)).Methods("GET", "POST")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue