1602 / 1602/kontroller

Self-describing routing within controller

オープン
#7 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
7
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

説明

It would be cool if we could have the option of self-describing routing within controllers, similar to how ASP.NET MVC does it.

``` C#
[HttpGet]
public ActionResult ShowContentList() {
return Render(...);
}

[HttpPost]
public ActionResult SaveContent() {
return Json(...);
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

The issue proposes adding attribute-based routing similar to ASP.NET MVC to a generic controller library for Express. Start by examining the existing routing mechanisms in the kontroller codebase, likely in the main controller files. Look for how routes are currently defined and dispatched. Research how Express middleware and routing work, and consider how to annotate controller methods with HTTP verbs. 'Done' would be a working prototype where methods decorated with [HttpGet] or [HttpPost] are automatically registered as routes.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
express, javascript, nodejs
領域
api, backend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。