Add a setting to clear cache
This commit is contained in:
1 parent
0bbb876a84
commit
55c811adb7
14 files changed
+192
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import "pkg:/source/utils/CacheUtils.bs"
|
||||
|
||||
namespace Http
|
||||
|
||||
class CacheRouter extends HttpRouter
|
||||
|
||||
function new()
|
||||
super()
|
||||
end function
|
||||
|
||||
@delete("/api/cache")
|
||||
function ClearCache(context as object) as boolean
|
||||
response = context.response
|
||||
|
||||
CacheUtils.Clear()
|
||||
response.Default(204, "OK")
|
||||
return true
|
||||
end function
|
||||
|
||||
end class
|
||||
|
||||
end namespace
|
||||
Reference in new issue
Block a user