Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to handling of Requests #88

Merged
merged 5 commits into from
Jul 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
[![Coverage Status](https://coveralls.io/repos/github/SpartanLabs/mindless/badge.svg?branch=master)](https://coveralls.io/github/SpartanLabs/mindless?branch=master)

# mindless

This documentation is out of date.

### A Library for creating APIs with TypeScript.

Mindless allows developers to write typical controller-styled apis with models using TypeScript. A great use of the mindless framework is with applications built using the [serverless framework](https://serverless.com/). In a typical serverless application, each route goes to its own function. Using mindless allows the developer to flip the script on this paradigm. Using the lightweight routing mechanism, developers can use routes to point to controllers based on path. Mindless also enables parameter injection and general dependency injection in controllers. Mindless will also have extensions such as permissions and data access that will further empower developers.
Expand Down
7 changes: 3 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export {App, IContainer, IApp} from "./src/app";
export { Router, Route, MindlessRoute, RouteUrl, IRouteUrl, IRouter } from './src/routing';
export { Context } from './src/interfaces';
export { Request, Event, HttpMethods } from './src/request';
export * from "./src/app";
export * from './src/routing';
export * from './src/request';
export { Response } from './src/response';
export { Middleware } from './src/middleware/middleware';
export { Controller } from './src/controller/controller';
191 changes: 94 additions & 97 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,16 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.11.1",
"semantic-release": "^15.4.1",
"travis-deploy-once": "^5.0.0",
"ts-jest": "^22.0.0",
"ts-node": "^6.0.0",
"tslint": "^5.8.0",
"tslint-config-prettier": "^1.1.0",
"tslint-config-standard": "^7.0.0",
"typedoc": "^0.11.0",
"typedoc": "^0.14.2",
"typemoq": "^2.1.0",
"typescript": "^2.6.2",
"validate-commit-msg": "^2.12.2",
"travis-deploy-once": "^5.0.0"
"typescript": "^3.5.3",
"validate-commit-msg": "^2.12.2"
},
"dependencies": {
"route-parser": "0.0.5"
Expand Down
4 changes: 2 additions & 2 deletions src/app/IApp.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Request } from '../request'
import { GenericConstructor } from '../interfaces'
import { Response } from '../response'
import { RequestEvent } from '../request'

export interface IApp {
resolve<T>(constructor: GenericConstructor<T>): T
handleRequest(request: Request): Promise<Response>
handleRequest(request: RequestEvent): Promise<Response>
}
Loading