Skip to main content
Home
This package has been archived, and as such it is read-only.

An object-oriented efficient MVC and REST framework

This package works with Cloudflare Workers, Deno
This package works with Cloudflare Workers
This package works with Deno
JSR Score
88%
Published
8 months ago (0.2.5)
class AbstractController
implements IController
extends Event

Abstract controller

Constructors

new
AbstractController()

Properties

filterChain: FilterChain

the filter collection

Methods

afterAction(actionEvent: ActionEvent): void
beforeAction(actionEvent: ActionEvent): void
filters(): SubFilter[] | null
abstract
render<T>(
view: string,
parameters: JSONCompatible<T> | null,
): Promise<string>
abstract
run(request: HttpRequest): Promise<HttpResponse>
runControllerAction(request: HttpRequest): Promise<HttpResponse>

Then entry of the controller

Static Properties

The event after action

The event before action

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@candy/framework

Import symbol

import AbstractController from "@candy/framework/core/AbstractController";
or

Import directly with a jsr specifier

import AbstractController from "jsr:@candy/framework/core/AbstractController";