Skip to content

Commit

Permalink
增加基础功能
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Jun 26, 2024
1 parent 471bbf5 commit 8d390aa
Show file tree
Hide file tree
Showing 21 changed files with 663 additions and 25 deletions.
9 changes: 9 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
*/

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

return [
(new Extend\Frontend('forum'))
Expand All @@ -21,6 +24,12 @@
->css(__DIR__.'/less/admin.less'),
new Extend\Locales(__DIR__.'/locale'),

(new Extend\Routes('api'))
->get('/store/list', 'store.list', ListStoreController::class)
->get('/store/commodity', 'store.commodity.list', ListCommodityController::class)
->post('/store/commodity', 'store.commodity.post', PostStoreController::class),

(new Extend\Settings())
->serializeToForum('storeName', 'mattoid-store.storeName'),

];
3 changes: 2 additions & 1 deletion js/dist/admin.js

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

15 changes: 14 additions & 1 deletion js/dist/admin.js.LICENSE.txt

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

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 8d390aa

Please sign in to comment.