Skip to content

Commit

Permalink
refactor: sub system
Browse files Browse the repository at this point in the history
  • Loading branch information
M1Screw committed Aug 24, 2023
1 parent eb43009 commit 6c04a1c
Show file tree
Hide file tree
Showing 17 changed files with 766 additions and 664 deletions.
5 changes: 2 additions & 3 deletions app/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@
})->add(new NodeToken());

// 传统订阅(SS/V2Ray/Trojan etc.)
$app->get('/link/{token}', App\Controllers\LinkController::class . ':getContent');

$app->get('/link/{token}', App\Controllers\SubController::class . ':getTraditionalSubContent');
// 通用订阅(Json/Clash/SIP008)
$app->get('/sub/{token}/{subtype}', App\Controllers\SubController::class . ':getContent');
$app->get('/sub/{token}/{subtype}', App\Controllers\SubController::class . ':getUniversalSubContent');
};
2 changes: 2 additions & 0 deletions qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ php:

#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-php:latest
include:
- name: CheckDependencyLicenses
286 changes: 0 additions & 286 deletions src/Controllers/LinkController.php

This file was deleted.

Loading

0 comments on commit 6c04a1c

Please sign in to comment.