redirect e621.ws root
This commit is contained in:
parent
d359f10133
commit
e7518a5c0f
1
.gitignore
vendored
1
.gitignore
vendored
@ -42,3 +42,4 @@
|
||||
/scripts
|
||||
/.idea
|
||||
/.run
|
||||
/data
|
||||
|
@ -8,6 +8,10 @@ module E621WsRoutes
|
||||
def self.extended(router)
|
||||
router.instance_exec do
|
||||
namespace(:e621_ws, path: "") do
|
||||
constraints(DomainConstraint.new(DOMAIN)) do
|
||||
root(to: redirect("https://#{STATUS_DOMAIN}"))
|
||||
end
|
||||
|
||||
constraints(DomainConstraint.new(DOMAIN, STATUS)) do
|
||||
resource(:json, only: %i[index current history]) do
|
||||
get(:index, controller: :status, defaults: { format: :json })
|
||||
@ -31,9 +35,9 @@ module E621WsRoutes
|
||||
|
||||
get(:manifest, constraints: { format: "json" })
|
||||
get(:browserconfig, constraints: { format: "xml" })
|
||||
root(action: :index)
|
||||
end
|
||||
|
||||
root(to: "status#index")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user