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

chore(npm): update dependencies #172

Merged
merged 1 commit into from
Apr 16, 2024
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
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/http",
"version": "4.29.0",
"version": "4.30.0",
"description": "The Athenna Http server. Built on top of fastify.",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down
16 changes: 8 additions & 8 deletions src/commands/RouteListCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ export class RouteListCommand extends BaseCommand {
*/
private paintMethod(method: string) {
const colors = {
GET: this.paint.GET.bold(method),
POST: this.paint.POST.bold(method),
PUT: this.paint.PUT.bold(method),
PATCH: this.paint.PATCH.bold(method),
DELETE: this.paint.DELETE.bold(method),
OPTIONS: this.paint.OPTIONS.bold(method),
HEAD: this.paint.HEAD.bold(method)
GET: this.paint.purple.bold(method),
POST: this.paint.green.bold(method),
PUT: this.paint.orange.bold(method),
PATCH: this.paint.yellow.bold(method),
DELETE: this.paint.red.bold(method),
OPTIONS: this.paint.cyan.bold(method),
HEAD: this.paint.cyan.bold(method)
}

return colors[method]
Expand All @@ -79,7 +79,7 @@ export class RouteListCommand extends BaseCommand {
private async resolveRoute() {
const path = Config.get(
'rc.commands.route:list.route',
`http.${Path.ext()}`
Path.routes(`http.${Path.ext()}`)
)

await Module.resolve(path, this.getParentURL())
Expand Down
Loading