1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

Moved robots.txt, humans.txt and manifest.json to app.php

This commit is contained in:
eldadfux 2019-07-30 10:54:12 +03:00
parent 1ef90ab3a9
commit f442def253
5 changed files with 81 additions and 50 deletions

View file

@ -406,6 +406,65 @@ $utopia->error(function($error /* @var $error Exception */) use ($request, $resp
;
});
$utopia->get('/manifest.json')
->desc('Progressive app manifest file')
->label('scope', 'public')
->label('docs', false)
->action(
function() use ($response, $project) {
$response->json([
'name' => APP_NAME,
'short_name' => APP_NAME,
'start_url' => '.',
'url' => 'https://appwrite.io/',
'display' => 'standalone',
'background_color' => '#fff',
'theme_color' => '#f02e65',
'description' => 'End to end backend server for frontend and mobile apps. 👩‍💻👨‍💻',
'icons' => [
[
'src' => 'images/favicon.png',
'sizes' => '256x256',
'type' => 'image/png'
]
]
]);
}
);
$utopia->get('/robots.txt')
->desc('Robots.txt File')
->label('scope', 'public')
->label('docs', false)
->action(
function() use ($response, $project) {
$response->text("# robotstxt.org/
User-agent: *
");
}
);
$utopia->get('/humans.txt')
->desc('Humans.txt File')
->label('scope', 'public')
->label('docs', false)
->action(
function() use ($response, $project) {
$response->text("# humanstxt.org/
# The humans responsible & technology colophon
# TEAM
<name> -- <role> -- <twitter>
# THANKS
<name>");
}
);
$utopia->get('/v1/info') // This is only visible to gods
->label('scope', 'god')
->label('docs', false)

44
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "4da6c815200ff864152d70447fc4b83e",
"content-hash": "f68a775eff043cea514c2805cc3e4b05",
"packages": [
{
"name": "appwrite/php-clamav",
@ -284,12 +284,12 @@
"source": {
"type": "git",
"url": "https://github.com/composer/ca-bundle.git",
"reference": "3a41bedd50d032bbff0cd0079c07f454f4a714f3"
"reference": "13a8d67799a4f1c0e6bb0abd788abbe9e95dee8e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/3a41bedd50d032bbff0cd0079c07f454f4a714f3",
"reference": "3a41bedd50d032bbff0cd0079c07f454f4a714f3",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/13a8d67799a4f1c0e6bb0abd788abbe9e95dee8e",
"reference": "13a8d67799a4f1c0e6bb0abd788abbe9e95dee8e",
"shasum": ""
},
"require": {
@ -332,7 +332,7 @@
"ssl",
"tls"
],
"time": "2019-05-05 15:21:27"
"time": "2019-07-30 05:22:27"
},
{
"name": "dasprid/enum",
@ -1711,12 +1711,12 @@
"source": {
"type": "git",
"url": "https://github.com/utopia-php/framework.git",
"reference": "0529a729c0c1f2ca26e1b7bc5d4e7170050d99a3"
"reference": "8a6feb07d0d8860fa3955cbd7be3910ede020db3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/framework/zipball/0529a729c0c1f2ca26e1b7bc5d4e7170050d99a3",
"reference": "0529a729c0c1f2ca26e1b7bc5d4e7170050d99a3",
"url": "https://api.github.com/repos/utopia-php/framework/zipball/8a6feb07d0d8860fa3955cbd7be3910ede020db3",
"reference": "8a6feb07d0d8860fa3955cbd7be3910ede020db3",
"shasum": ""
},
"require": {
@ -1747,7 +1747,7 @@
"php",
"upf"
],
"time": "2019-05-24 09:39:13"
"time": "2019-07-30 07:14:13"
},
{
"name": "utopia-php/locale",
@ -2319,8 +2319,8 @@
"authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de",
"role": "lead"
"role": "lead",
"email": "sebastian@phpunit.de"
}
],
"description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
@ -2478,12 +2478,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
"reference": "c4a66b97f040e3e20b3aa2a243230a1c3a9f7c8c"
"reference": "e899757bb3df5ff6e95089132f32cd59aac2220a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/c4a66b97f040e3e20b3aa2a243230a1c3a9f7c8c",
"reference": "c4a66b97f040e3e20b3aa2a243230a1c3a9f7c8c",
"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/e899757bb3df5ff6e95089132f32cd59aac2220a",
"reference": "e899757bb3df5ff6e95089132f32cd59aac2220a",
"shasum": ""
},
"require": {
@ -2496,7 +2496,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.0-dev"
"dev-master": "3.1-dev"
}
},
"autoload": {
@ -2519,7 +2519,7 @@
"keywords": [
"tokenizer"
],
"time": "2019-07-08T05:24:54+00:00"
"time": "2019-07-25T05:29:42+00:00"
},
{
"name": "phpunit/phpunit",
@ -2527,12 +2527,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "2834789aeb9ac182ad69bfdf9ae91856a59945ff"
"reference": "e11397fed729bfef7a9c76f7b193c27ad5710f6b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2834789aeb9ac182ad69bfdf9ae91856a59945ff",
"reference": "2834789aeb9ac182ad69bfdf9ae91856a59945ff",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e11397fed729bfef7a9c76f7b193c27ad5710f6b",
"reference": "e11397fed729bfef7a9c76f7b193c27ad5710f6b",
"shasum": ""
},
"require": {
@ -2592,8 +2592,8 @@
"authors": [
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de",
"role": "lead"
"role": "lead",
"email": "sebastian@phpunit.de"
}
],
"description": "The PHP Unit Testing framework.",
@ -2603,7 +2603,7 @@
"testing",
"xunit"
],
"time": "2019-07-15T06:24:08+00:00"
"time": "2019-07-27T05:00:17+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",

View file

@ -1,8 +0,0 @@
# humanstxt.org/
# The humans responsible & technology colophon
# TEAM
<name> -- <role> -- <twitter>
# THANKS
<name>

View file

@ -1,17 +0,0 @@
{
"name": "Appwrite",
"short_name": "Appwrite",
"start_url": ".",
"url": "https://appwrite.io/",
"display": "standalone",
"background_color": "#fff",
"theme_color": "#f02e65",
"description": "Make coding fun again",
"icons": [
{
"src": "images/favicon.png",
"sizes": "256x256",
"type": "image/png"
}
]
}

View file

@ -1,3 +0,0 @@
# robotstxt.org/
User-agent: *