Skip to content

Commit

Permalink
fix(Crystal/runcobo): fix class name conflit when upgrade to Crystal …
Browse files Browse the repository at this point in the history
…1.15.0 (#8156)
  • Loading branch information
shootingfly authored Jan 16, 2025
1 parent fab15ac commit c1f835f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crystal/runcobo/src/server.cr
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
require "runcobo"
ENV["SKIP_LOG"] = "true"

class Index < BaseAction
class Home::Index < BaseAction
get "/"

call do
render_plain ""
end
end

class CreateUser < BaseAction
class Users::CreateUser < BaseAction
post "/user"

call do
render_plain ""
end
end

class ShowUser < BaseAction
class Users::ShowUser < BaseAction
get "/user/:id"
url NamedTuple(id: Int32)

Expand All @@ -32,4 +32,4 @@ System.cpu_count.times do |_|
end
end

sleep
sleep

0 comments on commit c1f835f

Please # to comment.