
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@ingress/router
Advanced tools
The ingress router is an ingress addon that operates in an app driven by the @ingrss/http
(or similar) driver. It's purpose is to enable requests to be handled by Controllers (classes) and Routes (methods).
The @ingress/router
plugin introduces the @Controller
and @Route
decorators.
@Controller
exists on an instance, and facilitates dependency collection of groups of routes, which are declared by @Route
decorated class methods.
import { Router, Route } from '@ingress/router'
const router = new Router()
const { Controller } = router
@Controller('/group')
class RouteGroup {
@Route.Get('/handler')
handler() {
return 'Hello World'
}
}
The above example, declares a route at /group/handler
that returns an HTTP 200 OK
with a body content of Hello World
and a Content-Type of ttext/plain;charset=UTF-8
Alternatively, instead of through decorators, routes can be defined using the API
FAQs
A fast router middleware for ingress
We found that @ingress/router demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.