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

feat: change text api to core #1 #13

Merged
merged 1 commit into from
Jul 23, 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
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "cslant/blog-core",
"description": "Send notification from Gitlab and Github events to Telegram",
"description": "A Laravel package for CSlant blog Core",
"keywords": [
"cslant",
"laravel",
"cslant-blog-api-package",
"cslant-blog-api",
"cslant-blog-core-package",
"cslant-blog-core",
"cslant-blog",
"cslant-api",
"cslant-core",
"cslant-package",
"blog-api-package",
"blog-core-package",
"blog-core"
],
"homepage": "https://github.com/cslant/blog-core",
Expand Down
5 changes: 1 addition & 4 deletions config/blog-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
$routePrefix = env('BLOG_API_ROUTE_PREFIX', 'api');

return [
'defaults' => [
/* Set route prefix for the blog API */
'route_prefix' => $routePrefix,
],
'defaults' => [],
];
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</include>
</coverage>
<testsuites>
<testsuite name="CSlant Blog API Package">
<testsuite name="CSlant Blog Core Package">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
11 changes: 1 addition & 10 deletions routes/blog-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/*
|--------------------------------------------------------------------------
| Blog API Routes
| Blog Core Routes
|--------------------------------------------------------------------------
|
| Here is where you can register bot routes for your application. These
Expand All @@ -13,12 +13,3 @@
|
*/

$routePrefix = config('blog-api.defaults.route_prefix');

Route::prefix($routePrefix)->name("$routePrefix.")->group(function () {
Route::get('/posts', function () {
return response()->json([
'message' => 'Hello from the blog API!',
]);
});
});