Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsh0416 committed Feb 9, 2024
1 parent 8b525bb commit 1dc65c4
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions lib/inori/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def class_initialize
# delete '/' do
# puts 'Hello World'
# end
def delete(path, &) end
def delete(path, &block) end

# Add GET method as a DSL for route definition
# @param [String] path Accepts as part of path in route definition
Expand All @@ -40,7 +40,7 @@ def delete(path, &) end
# get '/' do
# puts 'Hello World'
# end
def get(path, &) end
def get(path, &block) end

# Add HEAD method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -50,7 +50,7 @@ def get(path, &) end
# head '/' do
# puts 'Hello World'
# end
def head(path, &) end
def head(path, &block) end

# Add POST method as a DSL for route definition
# @param [String] path Accepts as part of path in route definition
Expand All @@ -60,7 +60,7 @@ def head(path, &) end
# post '/' do
# puts 'Hello World'
# end
def post(path, &) end
def post(path, &block) end

# Add PUT method as a DSL for route definition
# @param [String] path Accepts as part of path in route definition
Expand All @@ -70,7 +70,7 @@ def post(path, &) end
# put '/' do
# puts 'Hello World'
# end
def put(path, &) end
def put(path, &block) end

# Add CONNECT method as a DSL for route definition
# @param [String] path Accepts as part of path in route definition
Expand All @@ -80,7 +80,7 @@ def put(path, &) end
# connect '/' do
# puts 'Hello World'
# end
def connect(path, &) end
def connect(path, &block) end

# Add OPTIONS method as a DSL for route definition
# @param [String] path Accepts as part of path in route definition
Expand All @@ -89,7 +89,7 @@ def connect(path, &) end
# options '/' do
# puts 'Hello World'
# end
def options(path, &) end
def options(path, &block) end

# Add TRACE method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -99,7 +99,7 @@ def options(path, &) end
# trace '/' do
# puts 'Hello World'
# end
def trace(path, &) end
def trace(path, &block) end

# Add COPY method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -109,7 +109,7 @@ def trace(path, &) end
# copy '/' do
# puts 'Hello World'
# end
def copy(path, &) end
def copy(path, &block) end

# Add LOCK method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -119,7 +119,7 @@ def copy(path, &) end
# lock '/' do
# puts 'Hello World'
# end
def lock(path, &) end
def lock(path, &block) end

# Add MKCOK method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -129,7 +129,7 @@ def lock(path, &) end
# mkcol '/' do
# puts 'Hello World'
# end
def mkcol(path, &) end
def mkcol(path, &block) end

# Add MOVE method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -139,7 +139,7 @@ def mkcol(path, &) end
# move '/' do
# puts 'Hello World'
# end
def move(path, &) end
def move(path, &block) end

# Add PROPFIND method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -149,7 +149,7 @@ def move(path, &) end
# propfind '/' do
# puts 'Hello World'
# end
def propfind(path, &) end
def propfind(path, &block) end

# Add PROPPATCH method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -159,7 +159,7 @@ def propfind(path, &) end
# proppatch '/' do
# puts 'Hello World'
# end
def proppatch(path, &) end
def proppatch(path, &block) end

# Add UNLOCK method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -169,7 +169,7 @@ def proppatch(path, &) end
# unlock '/' do
# puts 'Hello World'
# end
def unlock(path, &) end
def unlock(path, &block) end

# Add REPORT method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -179,7 +179,7 @@ def unlock(path, &) end
# report '/' do
# puts 'Hello World'
# end
def report(path, &) end
def report(path, &block) end

# Add MKACTIVITY method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -189,7 +189,7 @@ def report(path, &) end
# mkactivity '/' do
# puts 'Hello World'
# end
def mkactivity(path, &) end
def mkactivity(path, &block) end

# Add CHECKOUT method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -199,7 +199,7 @@ def mkactivity(path, &) end
# checkout '/' do
# puts 'Hello World'
# end
def checkout(path, &) end
def checkout(path, &block) end

# Add MERGE method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -209,7 +209,7 @@ def checkout(path, &) end
# merge '/' do
# puts 'Hello World'
# end
def merge(path, &) end
def merge(path, &block) end

# Add M-SEARCH method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -231,7 +231,7 @@ def msearch(path, &block)
# notify '/' do
# puts 'Hello World'
# end
def notify(path, &) end
def notify(path, &block) end

# Add SUBSCRIBE method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -241,7 +241,7 @@ def notify(path, &) end
# subscribe '/' do
# puts 'Hello World'
# end
def subscribe(path, &) end
def subscribe(path, &block) end

# Add UNSUBSCRIBE method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -251,7 +251,7 @@ def subscribe(path, &) end
# unsubscribe '/' do
# puts 'Hello World'
# end
def unsubscribe(path, &) end
def unsubscribe(path, &block) end

# Add PATCH method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -261,7 +261,7 @@ def unsubscribe(path, &) end
# patch '/' do
# puts 'Hello World'
# end
def patch(path, &) end
def patch(path, &block) end

# Add PURGE method as a DSL for route definition
# @param [ String ] path Accepts as part of path in route definition
Expand All @@ -271,7 +271,7 @@ def patch(path, &) end
# purge '/' do
# puts 'Hello World'
# end
def purge(path, &) end
def purge(path, &block) end

# Add LINK method as a DSL for route definition
# @param [String] path Accepts as part of path in route definition
Expand All @@ -281,7 +281,7 @@ def purge(path, &) end
# link '/' do
# puts 'Hello World'
# end
def link(path, &) end
def link(path, &block) end

# Add UNLINK method as a DSL for route definition
# @param [String] path Accepts as part of path in route definition
Expand All @@ -291,7 +291,7 @@ def link(path, &) end
# unlink '/' do
# puts 'Hello World'
# end
def unlink(path, &) end
def unlink(path, &block) end

# Add WEBSOCKET method as a DSL for route definition
# @param [String] path Accepts as part of path in route definition
Expand All @@ -301,7 +301,7 @@ def unlink(path, &) end
# websocket '/' do
# puts 'Hello World'
# end
def websocket(path, &) end
def websocket(path, &block) end

# Add EVENTSOURCE method as a DSL for route definition
# @param [String] path Accepts as part of path in route definition
Expand All @@ -311,7 +311,7 @@ def websocket(path, &) end
# eventsource '/' do
# puts 'Hello World'
# end
def eventsource(path, &) end
def eventsource(path, &block) end

# Mount a route prefix with another API defined
# @param [String] prefix prefix of the route String
Expand Down Expand Up @@ -340,17 +340,17 @@ def capture(error, &block)
# Use a middleware in the all routes
# @param [Class] middleware Inherited from +Inori::Middleware+
# @return [nil] nil
def use(middleware, *)
middleware = middleware.new(*)
def use(middleware, **args)
middleware = middleware.new(**args)
@scope_middlewares << middleware
nil
end

# Use a middleware in the next route
# @param [Class] middleware Inherited from +Inori::Middleware+
# @return [nil] nil
def filter(middleware, *)
middleware = middleware.new(*)
def filter(middleware, **args)
middleware = middleware.new(**args)
@temp_middlewares << middleware
nil
end
Expand Down

0 comments on commit 1dc65c4

Please sign in to comment.