This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
19 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ Simply add it to your Drash server's `middleware` config and you are all set! | |
## Usage | ||
|
||
```ts | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
import { Cors } from "https://deno.land/x/[email protected]/cors/mod.ts"; | ||
|
||
const server = new Drash.Http.Server({ | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ protection middleware inspired by | |
can be simply placed as a middleware for your resources and you are all set! | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
// Import the Dexter middleware function | ||
import { CSRF } from "https://deno.land/x/[email protected]/csrf/mod.ts"; | ||
|
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 +1 @@ | ||
export { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
export { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ Dexter is a logging middleware inspired by | |
can be used throughout the request-resource-response lifecycle. | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
// Import the Dexter middleware function | ||
import { Dexter } from "https://deno.land/x/[email protected]/dexter/mod.ts"; | ||
|
@@ -139,7 +139,7 @@ you want to use Dexter in one of your resources, then do the following: | |
|
||
```typescript | ||
// File: app.ts | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
import { HomeResource } from "./home_resource.ts"; | ||
import { Dexter } from "https://deno.land/x/[email protected]/dexter.ts"; | ||
|
||
|
@@ -177,7 +177,7 @@ you want to use Dexter in one of your resources, then do the following: | |
2. Create your `home_resource` file. | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
import { dexter } from "./app.ts"; | ||
|
||
export class HomeResource extends Drash.Http.Resource { | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ configurable and can be used throughout the request-resource-response lifecycle. | |
This does not make your application bulletproof, but adds extra security layers. | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
// Import the Paladin middleware function | ||
import { Paladin } from "https://deno.land/x/[email protected]/paladin/mod.ts"; | ||
|
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 |
---|---|---|
|
@@ -81,7 +81,7 @@ into JavaScript during server creation. | |
|
||
```typescript | ||
// File: app.ts | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
import { HomeResource } from "./home_resource.ts"; | ||
import { ServeTypeScript } from "https://deno.land/x/[email protected]/serve_typescript/mod.ts"; | ||
|
||
|
@@ -121,7 +121,7 @@ into JavaScript during server creation. | |
2. Create your `home_resource.ts` file. | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
export class HomeResource extends Drash.Http.Resource { | ||
static paths = ["/"]; | ||
|
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 |
---|---|---|
|
@@ -97,7 +97,7 @@ This tutorial teaches you how to use Jae (Tengine's default template engine). | |
1. Create your `app.ts` file. | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
import { HomeResource } from "./home_resource.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected]/tengine/mod.ts"; | ||
|
||
|
@@ -131,7 +131,7 @@ This tutorial teaches you how to use Jae (Tengine's default template engine). | |
2. Create your `home_resource.ts` file. | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
export class HomeResource extends Drash.Http.Resource { | ||
static paths = ["/"]; | ||
|
@@ -260,7 +260,7 @@ This tutorial teaches you how to use Eta. | |
1. Create your `app.ts` file. | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
import { HomeResource } from "./home_resource.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected]/tengine/mod.ts"; | ||
import { | ||
|
@@ -306,7 +306,7 @@ This tutorial teaches you how to use Eta. | |
2. Create your `home_resource.ts` file. | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
export class HomeResource extends Drash.Http.Resource { | ||
static paths = ["/"]; | ||
|
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 |
---|---|---|
|
@@ -69,7 +69,7 @@ look similar to the following: | |
Filename: `/path/to/your/project/user_resource.ts` | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
export default class UserResource extends Drash.Http.Resource { | ||
static paths = ["/user"]; | ||
|
@@ -93,7 +93,7 @@ look similar to the following: | |
Filename: `/path/to/your/project/app.ts` | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected]/tengine/mod.ts"; | ||
import { UserResource } from "./user_resource.ts"; | ||
|
||
|
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 |
---|---|---|
|
@@ -53,7 +53,7 @@ look similar to the following: | |
Filename: `/path/to/your/project/user_resource.ts` | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
export class UserResource extends Drash.Http.Resource { | ||
static paths = ["/user"]; | ||
|
@@ -78,7 +78,7 @@ look similar to the following: | |
Filename: `/path/to/your/project/app.ts` | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected]/tengine/mod.ts"; | ||
import { UserResource } from "./user_resource.ts"; | ||
|
||
|
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 |
---|---|---|
|
@@ -68,7 +68,7 @@ look similar to the following: | |
Filename: `/path/to/your/project/user_resource.ts` | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
|
||
export class UserResource extends Drash.Http.Resource { | ||
static paths = ["/user"]; | ||
|
@@ -92,7 +92,7 @@ look similar to the following: | |
Filename: `/path/to/your/project/app.ts` | ||
|
||
```typescript | ||
import { Drash } from "https://deno.land/x/[email protected].3/mod.ts"; | ||
import { Drash } from "https://deno.land/x/[email protected].4/mod.ts"; | ||
import { Tengine } from "https://deno.land/x/[email protected]/tengine/mod.ts"; | ||
import { UserResource } from "./user_resource.ts"; | ||
|
||
|