-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from fabrix-app/v1.1
V1.1
- Loading branch information
Showing
13 changed files
with
268 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export { policies } from './policies' | ||
export { router } from './router' | ||
export { routes } from './routes' | ||
export { spool } from './spool' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const policies = { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import * as joi from 'joi' | ||
|
||
export const policySchema = joi.object().keys({ | ||
'*': joi.alternatives().try( | ||
joi.func(), | ||
joi.string(), | ||
joi.object(), | ||
joi.array().items(joi.string()) | ||
), | ||
GET: joi.alternatives().try( | ||
joi.func(), | ||
joi.string(), | ||
joi.object(), | ||
joi.array().items(joi.string()) | ||
), | ||
HEAD: joi.alternatives().try( | ||
joi.func(), | ||
joi.string(), | ||
joi.object(), | ||
joi.array().items(joi.string()) | ||
), | ||
POST: joi.alternatives().try( | ||
joi.func(), | ||
joi.string(), | ||
joi.object(), | ||
joi.array().items(joi.string()) | ||
), | ||
PUT: joi.alternatives().try( | ||
joi.func(), | ||
joi.string(), | ||
joi.object(), | ||
joi.array().items(joi.string()) | ||
), | ||
DELETE: joi.alternatives().try( | ||
joi.func(), | ||
joi.string(), | ||
joi.object(), | ||
joi.array().items(joi.string()) | ||
), | ||
CONNECT: joi.alternatives().try( | ||
joi.func(), | ||
joi.string(), | ||
joi.object(), | ||
joi.array().items(joi.string()) | ||
), | ||
OPTIONS: joi.alternatives().try( | ||
joi.func(), | ||
joi.string(), | ||
joi.object(), | ||
joi.array().items(joi.string()) | ||
), | ||
TRACE: joi.alternatives().try( | ||
joi.func(), | ||
joi.string(), | ||
joi.object(), | ||
joi.array().items(joi.string()) | ||
), | ||
PATCH: joi.alternatives().try( | ||
joi.func(), | ||
joi.string(), | ||
joi.object(), | ||
joi.array().items(joi.string()) | ||
) | ||
}).unknown() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.