Skip to content

Commit

Permalink
增加基础功能
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Jun 27, 2024
1 parent 30f3afa commit bfc21b9
Show file tree
Hide file tree
Showing 17 changed files with 711 additions and 222 deletions.
4 changes: 4 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
*/

use Flarum\Extend;
use Mattoid\Store\Controller\DeleteStoreController;
use Mattoid\Store\Controller\ListCommodityController;
use Mattoid\Store\Controller\ListStoreController;
use Mattoid\Store\Controller\PostStoreController;
use Mattoid\Store\Controller\PutStoreController;

return [
(new Extend\Frontend('forum'))
Expand All @@ -27,6 +29,8 @@
(new Extend\Routes('api'))
->get('/store/list', 'store.list', ListStoreController::class)
->get('/store/commodity', 'store.commodity.list', ListCommodityController::class)
->put('/store/commodity', 'store.commodity.put', PutStoreController::class)
->delete('/store/commodity', 'store.commodity.delete', DeleteStoreController::class)
->post('/store/commodity', 'store.commodity.post', PostStoreController::class),

(new Extend\Settings())
Expand Down
2 changes: 1 addition & 1 deletion js/dist/admin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/forum.js

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

Loading

0 comments on commit bfc21b9

Please sign in to comment.