Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hashrock/hashrock-fresh-plugins
https://github.com/hashrock/hashrock-fresh-plugins
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hashrock/hashrock-fresh-plugins
- Owner: hashrock
- Created: 2023-08-09T17:12:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-01T20:44:52.000Z (11 months ago)
- Last Synced: 2024-07-24T01:05:16.816Z (6 months ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic Auth Plugin
add this plugin like:
```ts
// main.ts
import basicAuthPlugin from "https://deno.land/x/hashrock_fresh_plugins/basic.ts";await start(manifest, {
plugins: [
basicAuthPlugin("/greet/"),
],
});
```and create `.env`
```
BASIC_AUTH_USER=user
BASIC_AUTH_PASSWORD=password
```