Skip to content

Commit

Permalink
[Milestone] Version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
axiand committed Sep 14, 2022
1 parent 987f9c1 commit 5c8b1f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion class/RequestContext.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class RequestContext {
constructor(server, context) {
this.ServerContext = server

this.includes = context.includes
this.body = context.body
this.headers = context.headers
Expand All @@ -15,6 +15,10 @@ class RequestContext {
GetApp = function() {
return this.ServerContext.Parent
}

getHead = function(k) {
return this.headers[k]
}
}

module.exports.RequestContext = RequestContext
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origami",
"version": "0.0.0",
"version": "0.1.0",
"description": "APIs made easy",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5c8b1f1

Please sign in to comment.