mirror of
https://github.com/Open-Argon/http.ar.git
synced 2026-10-28 09:43:55 +00:00
return class
This commit is contained in:
1 parent
32d88ddd63
commit
3468ea57ed
1 file changed
+1
@@ -44,6 +44,7 @@ let server() = do
|
||||
class.put(callback) = routes.append({path: path, callback: callback, methods: ["PUT"], type: "route"})
|
||||
class.delete(callback) = routes.append({path: path, callback: callback, methods: ["DELETE"], type: "route"})
|
||||
class.all(callback) = routes.append({path: path, callback: callback, methods: true, type: "route"})
|
||||
return class
|
||||
class.get(path, callback) = class.route(path).get(callback)
|
||||
class.post(path, callback) = class.route(path).post(callback)
|
||||
class.put(path, callback) = class.route(path).put(callback)
|
||||
|
||||
Reference in new issue
Block a user