mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
init project
This commit is contained in:
11
app/constraint/react_constraint.rb
Normal file
11
app/constraint/react_constraint.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class ReactConstraint
|
||||
|
||||
|
||||
def matches?(request)
|
||||
# stuff
|
||||
#
|
||||
!File.exists?(File.join(Rails.root, "public", request.fullpath.split('?').first))
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user